News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Failed to link

Started by pacopizz, July 08, 2007, 03:08:51 PM

Previous topic - Next topic

pacopizz

Hello everybody,
I try to use CodeBlocks with Borland 5.2 compiler, because I need 80186 compatible code.
I have no problem to compile each file (.cpp) of my project, and I get all the objects files well (.obj)
When I try to link (using tlink.exe), the command macro I use is $link_objects that's put all the object files in the command line with .o extension and not .obj as I need.
Thank you for helping me to fix that.
Pascal.
Martinique - FWI.

Biplab

Go to Project > Properties menu option. Then click on Build targets tab and select a Target. Now uncheck the following two check-boxes.

  • Auto-generate filename prefix
  • Auto-generate filename extension
It should fix the issue.
Be a part of the solution, not a part of the problem.

pacopizz

Hi,
When I open the Project > Properties menu option, I can see 2 tabs :
- Project,
- Targets.
The two check-boxes you are talking about are not visible in any of these tabs.

My project is a console application, I don't know if we have the same configuration windows than in other kind of project.
Pascal.

Biplab

Quote from: pacopizz on July 09, 2007, 01:34:14 PM
When I open the Project > Properties menu option, I can see 2 tabs :

I suspect you're using RC2. If yes please upgrade to a latest nightly build. Please visit the following forum to download a latest nightly. :)
Quotehttp://forums.next.codeblocks.org/index.php/board,20.0.html
Be a part of the solution, not a part of the problem.

pacopizz

Thank you for your help.
I installed the latest nightly build, and now I have the correct command line when linking.
A new problem occured : there is a bug when invoking the linker (tlink.exe in my case) reported as "Problem with NTVDM.EXE", mainwhile the same command line using tlink in a DOS window works well...
Pascal.