weird LNK2001 problem!! 
Author Message
 weird LNK2001 problem!!

Hello,
I have no idea what libraries to link to get rid of these.

Query.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
Utilities_dbx.obj : error LNK2001: unresolved external symbol
__afxForceEXCLUDE
dbx_server.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
Log_dbx.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
MemoryAllocation_dbx.obj : error LNK2001: unresolved external symbol
__afxForceEXCLUDE
Parser.obj : error LNK2001: unresolved external symbol __afxForceEXCLUDE
dbx_server.obj : error LNK2001: unresolved external symbol "char const *

Query.obj : error LNK2001: unresolved external symbol "char const * const

c:\dbx_server\dbx_server.exe : fatal error LNK1120: 2 unresolved externals

--
Jay Balapa
Advanced Technologies Group Inc.
Oak Brook, IL - 60559



Sat, 27 Dec 2003 23:27:12 GMT  
 weird LNK2001 problem!!
The _afxForceEXCLUDE is pulled in by the following line in afx.h:
#pragma comment(linker, "/include:__afxForceEXCLUDE")

_afxPchNil is pulled in by the following lines in the afx.h
#ifdef _AFXDLL
const CString& AFXAPI AfxGetEmptyString();
#define afxEmptyString AfxGetEmptyString()
#else
extern LPCTSTR _afxPchNil;

All those symbols are in the MFC libraries.  It is possible that you have a
mismatch in using MFC libraries in your project and the libraries you are
linking with.

James



Sun, 28 Dec 2003 02:25:49 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Weird, very weird status bar "problem".

2. Weird, very weird status bar "problem".

3. weird, weird and really weird?

4. WEIRD WEIRD Help Please a.s.a.p.:head pointers

5. Weird build error, weird makefile error, flaky VC4.0

6. C++ Class Library (.NET) LNK2001 problem

7. Problem: LNK2001 Error w/ MC++ 2003 Class Library

8. problem due to LNK2001 winmaincrtstartup error

9. Linking Problem when trying to create ReleaseUMinDependency[error LNK2001: unresolved external symbol _main]

10. error LNK2001 problem

11. can't solve LNK2001 problem

12. LNK2001 problem with MCI commands

 

 
Powered by phpBB® Forum Software