User forums > Help
ld.exe invalid argument
hadirj:
Hi all
I have the latest C::B and using it in both PC and laptop(both Vista) i have no problem in my PC but in laptop when i try to compile even a "hello world" i got this error.
--- Quote ---collect2: installation problem, cannot exec 'c:\Program Files\codeblocks\MinGW\bin\ld.exe' : invalid argument
--- End quote ---
[attachment deleted by admin]
Jenna:
--- Quote from: hadirj on July 31, 2009, 07:48:09 am ---Hi all
I have the latest C::B and using it in both PC and laptop(both Vista) i have no problem in my PC but in laptop when i try to compile even a "hello world" i got this error.
--- Quote ---collect2: installation problem, cannot exec 'c:\Program Files\codeblocks\MinGW\bin\ld.exe' : invalid argument
--- End quote ---
--- End quote ---
Change "Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> Other settings(rightmost tab)" "Compiler logging" to "Full commandline" and post the content of the build log, that leads to this error.
Also you should provide some more information: which version of C::B do you use, which version of MinGW,
You can try to compare both C::B generated commandlines, the one that works and the one tha does not, maybe it gives you a hint.
hadirj:
--- Quote from: jens on July 31, 2009, 11:30:50 am ---
--- Quote from: hadirj on July 31, 2009, 07:48:09 am ---Hi all
I have the latest C::B and using it in both PC and laptop(both Vista) i have no problem in my PC but in laptop when i try to compile even a "hello world" i got this error.
--- Quote ---collect2: installation problem, cannot exec 'c:\Program Files\codeblocks\MinGW\bin\ld.exe' : invalid argument
--- End quote ---
--- End quote ---
Change "Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> Other settings(rightmost tab)" "Compiler logging" to "Full commandline" and post the content of the build log, that leads to this error.
Also you should provide some more information: which version of C::B do you use, which version of MinGW,
You can try to compare both C::B generated commandlines, the one that works and the one tha does not, maybe it gives you a hint.
--- End quote ---
thank for the reply here is the log
--- Quote ---mingw32-g++.exe -o bin\Debug\test.exe obj\Debug\main.o
collect2: installation problem, cannot exec `C:\Program Files\CodeBlocks\MinGW\bin\ld.exe': Invalid argument
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
--- End quote ---
I'm using C::B 8.02 with the default MinGW which included in the installation pack.
Seronis:
--- Quote from: jens on July 31, 2009, 11:30:50 am ---Change "Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> Other settings(rightmost tab)" "Compiler logging" to "Full commandline" and post the content of the build log, that leads to this error.
--- End quote ---
You forgot to do this part first it appears.
hadirj:
--- Quote from: Seronis on July 31, 2009, 05:15:29 pm ---
--- Quote from: jens on July 31, 2009, 11:30:50 am ---Change "Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> Other settings(rightmost tab)" "Compiler logging" to "Full commandline" and post the content of the build log, that leads to this error.
--- End quote ---
You forgot to do this part first it appears.
--- End quote ---
seems that I don't know what is the build log! coz I did that steps and just the following line added to the error!
--- Quote ---mingw32-g++.exe -o bin\Debug\test.exe obj\Debug\main.o
--- End quote ---
would you pleas tell me what and where can I find the build log.
Thanks again :)
Navigation
[0] Message Index
[#] Next page
Go to full version