Jump to content

Compiler Crash In Xp


Recommended Posts

IDE 5.8

BoostC v1.9.2

PIC 16F627 @ 4MHz

 

Hi,

 

The following is a very simple test program that consistently causes BoostC16.pic.exe to get an Internal Error. Attempting to compile this program more than once hangs my computer. I'm running XP, SP2.

 

#include <system.h>

 

char myArray[3][4] = {"abc", "def", "ghi"};

 

void main()

{

 

}

 

Help!

:lol:

Regards,

 

Perry

Link to post
Share on other sites

fischp,

 

Looks like a compiler bug :lol:

 

Workaround for now is something like:

 

char* myArray[3];

 

char* ptr0 = "abc";

char* ptr1 = "def";

char* ptr2 = "ghi";

 

void main()

{

myArray[0] = ptr0;

myArray[1] = ptr1;

myArray[2] = ptr2;

 

}

 

Regards

Dave

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...