The ld returned 1 exit status error is the consequence of previous errors. In your example there is an earlier error - undefined reference to 'clrscr' - and this is the real one. The exit status error just signals that the linking step in the build process encountered some errors. Normally exit status 0 means success, and exit status 0 means errors. https://printingnew318.weebly.com/blog/how-to-set-up-auto-tune-evo. https://printingnew318.weebly.com/blog/exit-command-dev-c. Please post the FULL output text from your compiler. If the message is 'ld returned exit status 1', that's generally an indication of a linker error. The linker output (which you haven;t shown) should give an indication of the problem. Last edited on Jun 22, 2017 at 5:10pm UTC. ' ld returned 1 exit status ' Go into your settings and put the warning level on maximum. https://printingnew318.weebly.com/blog/mac-boot-camp-how-to-switch-os. The compiler should be giving you line numbers, function names, etc in your warnings.
The library seems to be 'gdi32':
https://msdn.microsoft.com/en-us/library/vs/alm/dd144925%28v=vs.85%29.aspx A library can be either static or dynamic. Static library is just a collection of object code and linker effectively copies code into executable during linking. Statically linked executable is a large monolith, but self-sufficient. Dynamic library is object code too, but rather than copying actual code, the linker adds call code 'stubs' into the executable. When the executable (your program) is run, the library file is linked in and code is executed from it. Thus, the executable file does not work without the library file(s). The executable file is smaller and many programs may use same library; less duplication. In *nix a dynamic library has extension .so In OS X a dynamic library has extension .dyld In Windows a dynamic library has extension .dll, but there is also a .lib file created with the dll that is a small static library containing the stubs thatthe linker inserts into the executable for the executable to link the dll. The linker of GCC in Windows uses some mixture of library types. ![]() Dev C Error Id Returned 1 Exit Status UbuntuComments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |