Jump to content

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

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...