GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 21-Nov-2008, 14:55
hadrien hadrien is offline
New Member
 
Join Date: Nov 2008
Posts: 2
hadrien is on a distinguished road
Exclamation

Linker Error: Undefined Symbol


Hi, I'm programming in C using the Turbo C (TC) and Turbo Debugger (TD) (and I may use these programs). I have a program with some files who share variables and user defined structures.
When I try to build the project, I get these error messages:

- Linker Error: Undefined symbol _MAIN in module CO.ASM (and of course I have a main function)

- Linker Error: Undefined symbol _STACK1 in module TEST.C (this is a module that I use in the main program, where I've defined a variable that I use in TEST.C as extern variable)

- Linker Error: Undefined symbol _STACK2 in module TEST.C (it is curious that I have other shared stack variables between both files and I have no problem with them)

Can anybody help me?

Thanks!
  #2  
Old 21-Nov-2008, 23:16
ocicat ocicat is offline
Regular Member
 
Join Date: May 2008
Posts: 568
ocicat is a jewel in the roughocicat is a jewel in the rough

Re: Linker Error: Undefined Symbol


Quote:
Originally Posted by hadrien
- Linker Error: Undefined symbol _MAIN in module CO.ASM (and of course I have a main function)
Most likely, you have configured the project file settings incorrectly.
  #3  
Old 25-Nov-2008, 20:48
Peter_APIIT Peter_APIIT is offline
Regular Member
 
Join Date: May 2007
Location: Malaysia
Posts: 542
Peter_APIIT can only hope to improve

Re: Linker Error: Undefined Symbol


Try use MS VS express edition.
  #4  
Old 29-Nov-2008, 03:52
hadrien hadrien is offline
New Member
 
Join Date: Nov 2008
Posts: 2
hadrien is on a distinguished road
Thumbs up

Re: Linker Error: Undefined Symbol [Solved]


Hi,

thanks for your answers. I solved the error, it was due to I did not added the module that contains the main class to the project.

I know TC and TD are antique tools, but I have to use them because it's part of a school subject.

See you.
 
 

Recent GIDBlogMoving again by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linker Error athika_32 C Programming Language 6 03-Dec-2007 07:38
Resolving "error LNK2001" vkiran_v MS Visual C++ / MFC Forum 6 11-Jul-2007 10:41
Flex, bison multifunction calculator annatsos C Programming Language 6 03-May-2007 10:50
BCC45 Linker Question; Need Help poden C++ Forum 9 13-Nov-2006 12:35
A linker error coder MS Visual C++ / MFC Forum 4 19-Feb-2006 09:50

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 15:11.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.