We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I,ve installed the Compiler and I can,t get even the simplest code to compile properely.
Anyone know where the fix for this bug is?
Or is it a limit of the demonstration version?
void main(void) { cout << "Hello world!"; }
"There is obviously sufficient analysis going on to allow it to omit a load of stuff if the program uses no floating point."
From previous experience of Microsoft compiler technologies, I would say that it is not so much analyzing that the stuff can be omitted but rather that they should not be included.
Specifically - When floating point is required in a module, it makes reference(s) to any external functions that are required for the compiler chosen task.
At link time these external references would normally pull in the libraries that satisfy the external references.
So - It is not normally the formatting string of the printf that is interpreted by the compiler to determine whether the libraries that are included, but rather the fact that a floating point access is somewhere in the project.