Jump to content
Sign in to follow this  
thiemann

Boostc Linker: Failure If Extern Not Defined

Recommended Posts

Bug description:

The BoostC linker fails with "No Error" if you declare an extern variable, but never define it.

 

Steps to reproduce:

1.) Create a new project

2.) Add a main.c file to the project with the following code

extern char x;

void interrupt()
{
}

void main()
{
}

3.) Compile the project using BoostC

4.) Notice the linker error message.

 

Expected behavior:

The linker should allow an undefined extern variable (as long as it is not used).

MSVC++ allows an undefind extern.

 

Is the problem 100% reproducible:

Yes

 

PicAntIDE version: PicAndIDE version

Compiler: BoostC

Compiler version: 1.1 Alpha

 

OS: Windows XP

 

Comments:

None

Share this post


Link to post
Share on other sites
Guest Dave

Thiemann,

 

Nicely spotted. ;)

 

This is now fixed, so will be available in the next release.

 

Regards

Dave

Share this post


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...
Sign in to follow this  

×
×
  • Create New...