Jump to content

Fail To Compile Multiple Line Comments

Recommended Posts

Bug description:

Fails to compile multiple line comments containing '/*'


Error message: Bug1.c(14): EOF in comment


Steps to reproduce:

Compile sample code


Expected behavior:

Compile without error or warning


Is the problem 100% reproducible:

Always occurs


IDE version: SourceBoost IDE version 6.35

Compiler: BoostC

Compiler version: 6.35

Target device: PIC16F877A

OS: Windows XPpro SP2


#include <system.h>

volatile unsigned char c;

void main()
 c = 1;
 /* this is a nested comment bug /* */
 while (c)


SourceBoost IDE seems to use the correct rules for nested comments in C.


Work around:

1 - Don't put '/*' in a comment.

2 - Don't try to nest multiple line comments.


How annoying is this? (0=Win lottery, 9=Root channel) : 2

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.

  • Create New...