CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17

Thread: portable code

  1. #16
    Join Date
    Apr 1999
    Posts
    27,449

    Re: portable code

    Quote Originally Posted by Cambalinho View Post
    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

  2. #17
    Join Date
    Apr 2009
    Posts
    1,355

    Re: portable code

    Quote Originally Posted by Paul McKenzie View Post
    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?

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured