Re: LNK2001 error
- From: jwm <jwmwalrus@xxxxxxxxx>
- Date: Tue, 09 Oct 2007 19:29:59 -0700
On Oct 9, 7:28 am, mandar <mandarm...@xxxxxxxxx> wrote:
Configuration: TDMA - Win32 Debug--------------------
Linking...
dfor.lib(DFORMAIN.OBJ) : error LNK2001: unresolved external symbol
_MAIN__
Debug/TDMA.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
TDMA.exe - 2 error(s), 0 warning(s)
What kind of target are you trying to build (i.e., a library? an
executable?).
If it's a library, then you shouldn't include a unit identified as
PROGRAM in your code (even implicitly)... and make sure you're using
the proper kind of project.
If your target is an executable, do the opposite, that is, include a
unit identified as PROGRAM. Internally, your compiler will rename the
main PROGRAM unit as _MAIN__ ---thus resolving the linking error.
.
- References:
- LNK2001 error
- From: mandar
- LNK2001 error
- Prev by Date: Allocatable Components of Derived Type
- Next by Date: Re: Allocatable Components of Derived Type
- Previous by thread: Re: LNK2001 error
- Next by thread: m/c Precision vs. Desired Tolerance
- Index(es):
Relevant Pages
|