User forums > Help

missing link.exe

(1/5) > >>

gweather:
Windows 10 PRO 64BIT
CODE BLOCKS 16.01 (just downloaded from sourceforge.net codeblocks-16.01-mingw-setup.exe

created a c project and tried building the default code.

BUILD LOG:

-------------- Build: Debug in HelloWorld (compiler: GNU GCC Compiler)---------------

gcc.exe -Wall -g  -c C:\Work\HelloWorld\main.c -o obj\Debug\main.o
link.exe  -o bin\Debug\HelloWorld.exe obj\Debug\main.o   
Execution of 'link.exe  -o bin\Debug\HelloWorld.exe obj\Debug\main.o' in 'C:\Work\HelloWorld' failed.

TOOLCHAIN POINTS TO C:\Program Files (x86)\CodeBlocks\MinGW\bin

No link.exe file there and after a search of c: no link.exe found at all

Is this file missing or is another file used in its place?

stahta01:
I know of no time that GCC used an link.exe.

For DLL/Shared/normal linking gcc.exe or g++.exe is normally used in CB.
For Static library, I think ar.exe is use; but, I am not sure of that.

Tim S.

gweather:
I printed out the build log.  That is the only thing I have to go on and it says link.exe failed.  I am not sure what else to look for.

stahta01:
What commands are used in the toolchain settings?

Please post the build log!

Tim S.

stahta01:
http://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Navigation

[0] Message Index

[#] Next page

Go to full version