-
August 23rd, 2013, 02:21 PM
#16
Re: portable code
Originally Posted by Cambalinho
my dev C++ verison is 5.4.1(2013).
But what is the version of the compiler? If there is a compiler issue, no one cares what version of Dev C++ is that you're using. Only the compiler that Dev-C++ uses to compile your code is all that matters.
Regards,
Paul McKenzie
-
August 23rd, 2013, 02:24 PM
#17
Re: portable code
Originally Posted by Paul McKenzie
First remember that Dev-C++ is not the compiler. The compiler is gcc.
Second, in C++ you won't be able to use any functions if the functions are not declared. You can't compile any C++ module if you call a function that isn't previously declared, or if not declared, the entire function body exists before the call. Those are the rules of C++.
If you want proof, try to compile this simple program:
Code:
int main()
{
double x = sqrt(4.0);
}
This will also not compile, since sqrt() isn't declared.
Regards,
Paul McKenzie
thanks..
thinking on compiler: for i add resource files, dll's and others to exe:
1 st - compile the resource file, sources files;
2 nd - then i link all files(the obeject file, the new resouce file, dll's). and then i have the exe completed.
i'm wrong?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|