User forums > Help

missing link.exe

<< < (3/5) > >>

stahta01:

--- Quote from: stahta01 on December 30, 2017, 02:19:16 pm ---For DLL/Shared/normal linking gcc.exe or g++.exe is normally used in CB.

--- End quote ---

The normal value is g++.exe
If you plan to never use C++, some people use gcc.exe.

Tim S.

gweather:
I was writing the code in c not c++.  I used the default settings and got the error.  The ar.exe links static libraries according to the toolchain menu.  Is there an issue with the defaults for CB?  Is there an explanation about the problem that I missed?

stahta01:

--- Quote from: gweather on December 30, 2017, 03:27:24 pm ---I was writing the code in c not c++.  I used the default settings and got the error.  The ar.exe links static libraries according to the toolchain menu.  Is there an issue with the defaults for CB?  Is there an explanation about the problem that I missed?

--- End quote ---

FIX THE LINKER IN THE TOOLCHAIN SETTING!!!!!!!!!!

You changed the value; the default was never link.exe till you changed it!!!

Tim S.

gweather:
These are the default values.  I did not change anything after the install.  I ran  codeblocks-16.01mingw-setup.exe that I downloaded from sourceforge.net from the Code Blocks web download link and then created a console app and used the defaults.  Again, I did not change anything and clicked the build icon and it gave the posted error.

What is suppose to be there?

stahta01:

--- Quote from: gweather on December 30, 2017, 03:27:24 pm ---I was writing the code in c not c++.

--- End quote ---


--- Quote from: gweather on December 30, 2017, 03:27:24 pm ---
I used the default settings and got the error.

--- End quote ---
No you used what someone set the values to on your computer; not the default settings


--- Quote from: gweather on December 30, 2017, 03:27:24 pm ---
The ar.exe links static libraries according to the toolchain menu.

--- End quote ---

Correct.
But, the Shared/DLL linker is used for linking everything that is not an static library!


--- Quote from: gweather on December 30, 2017, 03:27:24 pm ---
Is there an issue with the defaults for CB?

--- End quote ---
No, the issue is user error and the fact that CB setting can only be manually deleted; so, they stay during an uninstall/install cycle.

--- Quote from: gweather on December 30, 2017, 03:27:24 pm --- 
Is there an explanation about the problem that I missed?

--- End quote ---
See the above answer.

Tim S.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version