Jump to content
Sign in to follow this  
SnakeByte

Boostc 1.6alpha Bug...

Recommended Posts

Example code:

 

int badRecursion(int gnu, int gnuisnotunix)

{

return gnu * badRecursion(gnu + 1, gnuisnotunix - 1);

}

 

void main()

{

 

}

 

compiler is unable to handle the return line of the badRecursion function.

Share this post


Link to post
Share on other sites

This is not a bug. You need to include system.h Without this header code that uses */% operations won't compile.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites
This is not a bug. You need to include system.h Without this header code that uses */% operations won't compile.

 

Regards,

Pavel

 

Thanks Pavel. I read through the system.h and the other dependend header files and didn't see any mention of those operators, so I'm curious, does the compiler use information internally from those headers files to determine the correct way to impliment things, or have I missed something?

Share this post


Link to post
Share on other sites
... I'm curious, does the compiler use information internally from those headers files to determine the correct way to impliment things, or have I missed something?

 

For */% operation compiler uses special functions from libc library. These functions are declared in boostc.h that in turn is included into system.h

 

Regards,

Pavel

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