Computer Programming

© Guy Lecky-Thompson

Read the article this discussion is about

Turbo C Linking Issues

  1. shahidam31
  2. Guy Lecky-Thompson


Reply   Post   Top
1.   Oct 14, 2007 7:32 AM

» shahidam31 - Turbo C


Hi im trying to make an exe file from my source file (test.cpp) in the command prompt.

I am able to create the .obj file successfully by using the typing the follwing command

tcc test.cpp(source file name)

it successfully creates the test.obj file. Now i want to use the linker (tlink.exe) to convert the test.obj to test.exe


when i type:-

tlink test.obj

it does create the test.exe file and a test.map file but with the following error messages

Error: undefined symbol _getch in module test.cpp

Error: undefined symbol _printf in module test.cpp

Error: undefined symbol _clrscr in module test.cpp

but when the exe file run it dosent work properly and is very small in size.

i am able to create the exe file by using the tcc.exe. I want to know the how to create the exe straight from the .obj file by using the tlink

thanks

-- posted by shahidam31

Permalink Print Discussion Print Discussion Email Discussion Email Discussion Suite101: Turbo C Linking Issues How to subscribe to feeds

Reply   Post   Top
2.   Oct 19, 2007 12:17 AM

» Feature Writer Guy Lecky-Thompson - Turbo C

In response to Turbo C posted by shahidam31:


Hi,

To do this, you need to specify the library files (.lib / .obj) on the command line. In this case, the library file that you need to link to should be listed in the Turbo C documentation.

Guy

Suite101
Permalink Print Discussion Print Discussion Email Discussion Email Discussion Suite101: Turbo C Linking Issues How to subscribe to feeds

Please follow the guidelines set forth in the Suite101 Posting Etiquette when adding to the discussion.