Linking Error 2001 
Author Message
 Linking Error 2001

Hi
I am facing linking error mentioned bellow, but if i compiled the code in
debug mode it works fine (no error).
Also it works fine if i comment this statment
strupr(buffer);

tell me why failing in release mode ?

Error description is
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////
Linking...
Creating library ReleaseMinDependency/VSRP.lib and object
ReleaseMinDependency/VSRP.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseMinDependency/VSRP.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

VSRP.dll - 2 error(s), 0 warning(s)
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////

Regards,
Umar.



Wed, 15 Jun 2005 19:55:03 GMT  
 Linking Error 2001
Remove _ATL_MIN_CRT from the preprocessor deifinitions.

Right click on project (in workspace tree), select settings
Select the project type in the "Setting For" drop down
Click C/C++ tab
Select Preprocessor Settings in the categories drop down
Select text _ATL_MIN_CRT
Hit delete key


Quote:
> Hi
> I am facing linking error mentioned bellow, but if i compiled the code in
> debug mode it works fine (no error).
> Also it works fine if i comment this statment
> strupr(buffer);

> tell me why failing in release mode ?

> Error description is

////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
Quote:
> ////////
> Linking...
> Creating library ReleaseMinDependency/VSRP.lib and object
> ReleaseMinDependency/VSRP.exp
> LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
> ReleaseMinDependency/VSRP.dll : fatal error LNK1120: 1 unresolved
externals
> Error executing link.exe.

> VSRP.dll - 2 error(s), 0 warning(s)

////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
Quote:
> ////////////

> Regards,
> Umar.



Thu, 16 Jun 2005 00:43:19 GMT  
 Linking Error 2001
Consider using CharUpperA instead, since this is the only dependence
you have on the C RTL...

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD

MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

Quote:

> Hi
> I am facing linking error mentioned bellow, but if i compiled the code in
> debug mode it works fine (no error).
> Also it works fine if i comment this statment
> strupr(buffer);

> tell me why failing in release mode ?

> Error description is
> ////////////////////////////////////////////////////////////////////////////
> ////////////////////////////////////////////////////////////////////////////
> ////////
> Linking...
> Creating library ReleaseMinDependency/VSRP.lib and object
> ReleaseMinDependency/VSRP.exp
> LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
> ReleaseMinDependency/VSRP.dll : fatal error LNK1120: 1 unresolved externals
> Error executing link.exe.

> VSRP.dll - 2 error(s), 0 warning(s)
> ////////////////////////////////////////////////////////////////////////////
> ////////////////////////////////////////////////////////////////////////////
> ////////////

> Regards,
> Umar.



Tue, 21 Jun 2005 07:48:04 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Link error 2001 and 1120

2. Help-Linking Error 2001

3. Linking Error 2001

4. Link Error 2001 for...

5. help: link error 2001

6. Link error 2001

7. Link error 2001

8. LINK ERROR 2001: unresoled external symbol _main

9. link error 2001 using string in multithread app

10. link 2001 error in statically linked mode only

11. link 2001 error when statically linking

12. Link Error 4006,4008,2001

 

 
Powered by phpBB® Forum Software