Turbo C Compiler

March 1, 2011 at 12:19:29
Specs: Windows XP
I am getting linker errors link. Compile is fine (4 warnings)

The problem is that I have "windows.lib" that is not reference in the code but contains the definitions I need. The make file shows me this but will not compile properly. The code is ancient I know - the compiler is ancient I know. The program that is created is ancient I know. Part of an old system that is still in use. Having said that the error still stands.

Any suggestions. I may be missing something to do with the directories.

Any help is appreciated.

See More: Turbo C Compiler

Report •

March 1, 2011 at 12:26:32
My initial post seemed not to be in English once I posted it. Let me reword it. I have a .c file which has associated .h files - the .c file is part of an older system still in use. Although part of an older system it is a stand alone executable. The problem is that I can compile the .c file (4 warnings) but when I link I get linker error undefined sysmbol -

The errors are for undefined sysmbol which seem to be defined in the "windows.lib" file but is never called. Is it normally called or is it automatiucally incorporated into the file when linked.

I have a make file but it seems to do absolutely nothing except provide allowable memory notice and return to the c:\ prompt.

Report •

March 1, 2011 at 12:33:55
Are you talking about the original Turbo C or a Windows version? I believe that in the original DOS Turbo C you need to define 3 environment variables:


The first points (obviously) to the location of the \include files directory, the other two both point to location of the \lib directory. (And no, I've no idea why two variables are needed for this!)

You might like to check that you have these variables set.

Report •

March 2, 2011 at 06:51:00
Further to the above.... I see "windows.lib" referenced here but the make file does not link properly,

appvl.exe: appvl.obj ..\message\message.obj ..\message\card.obj ..\llib\windows.lib
tlink /c /i /d /m /s ..\lib\c0h appvl ..\message\message ..\message\card,appvl,appvl,@..\llib\windows.res

appvl.obj: appvl.c ..\llib\windows.lib
tcc -c -1 -mh -f appvl.c

The above is a copy of the make file that I have inherited. When I run "make appvl.mak" I get no errors - just a memory comment:

available memory 15728640 bytes

Now I have been able to cull all the files together (again I'm inheriting this dog's breakfast of a mess) but I am having little success. Turbo C was the compiler being used - and it is the compiler I am using now - for the sake of continuity -

Any suggestions or similar experience solutions would be greatly appreciated. Regards

Report •

Related Solutions

March 2, 2011 at 08:42:20
Are you sure that the "llib"s in the makefile are correct? Normally it's just "lib". Just a thought.

Report •

March 2, 2011 at 09:21:31
I have removed the link to my site ...

Report •

July 19, 2011 at 21:15:46
i have windows xp version...trubo c is running but when i compile it dsnt show output n closes turbo c...what shud i so?

Report •

Ask Question