Author Topic: Failed to link  (Read 4670 times)

Offline pacopizz

  • Single posting newcomer
  • *
  • Posts: 7
Failed to link
« on: July 08, 2007, 03:08:51 pm »
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.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Failed to link
« Reply #1 on: July 09, 2007, 09:38:36 am »
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.

Offline pacopizz

  • Single posting newcomer
  • *
  • Posts: 7
Re: Failed to link
« Reply #2 on: July 09, 2007, 01:34:14 pm »
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.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Failed to link
« Reply #3 on: July 09, 2007, 01:55:09 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. :)
Quote
http://forums.codeblocks.org/index.php/board,20.0.html
Be a part of the solution, not a part of the problem.

Offline pacopizz

  • Single posting newcomer
  • *
  • Posts: 7
Re: Failed to link
« Reply #4 on: July 09, 2007, 03:43:57 pm »
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.