Jump to content
Sign in to follow this  

Extern Problem With Boostc Compiler

Recommended Posts

Bug description:

The BoostC compiler does not work correctly when using extern to declare a variable and when you define the same variable in the same C module.


Steps to reproduce:

1.) Create a new project

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

extern char x;

char x;

void main()


3.) Compile the project using BoostC

4.) Notice the compiler error message about the variable 'x' already existing.


Expected behavior:

The compiler should allow a variable to be extern'ed (really like making a prototype for the variable) and allow the variable to be defined (like implementing a prototyped function) in the same C module.


Is the problem 100% reproducible:



PicAntIDE version: PicAndIDE version

Compiler: BoostC

Compiler version: 1.0 Alpha


OS: Windows XP




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.

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.

Sign in to follow this  

  • Create New...