Errors while Linking with Visual C++ 6.0 PRO..

J

JariTapio

Linking...
Server.obj : error LNK2001: unresolved external symbol "public: long
__thiscall CDisplay::present(void)" (?Present@CDisplay@@QAEJXZ)
Server.obj : error LNK2001: unresolved external symbol "public: long
__thiscall CDisplay::Clear(unsigned long)" (?Clear@CDisplay@@QAEJK@Z)
Server.obj : error LNK2001: unresolved external symbol "public: long
__thiscall CDisplay::CreateFullScreenDisplay(struct HWND__ *,unsigned
long,unsigned long,unsigned long)"
(?CreateFullScreenDisplay@CDisplay@@QAEJPAUHWND__@@KKK@Z)
Server.obj : error LNK2001: unresolved external symbol "public: __thiscall
CDisplay::CDisplay(void)" (??0CDisplay@@QAE@XZ)
Server.obj : error LNK2001: unresolved external symbol "public: __thiscall
CDisplay::~CDisplay(void)" (??1CDisplay@@QAE@XZ)
LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Release/Server.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.

Server.exe - 7 error(s), 0 warning(s)


Hei!

Im tryin to fit together MS DX8.1SDKs TUT_09CLIENTSERVER and
DIRECTDRAW_FULLSCREEN sample but my compiler gives these errors..
im not familiar with linker and i do not know where to search error maybe
PROJECT - SETTINGS - LINK but i do not know what to add or take away...

Thank you for your help..

Yours : JariTapio.
 
J

Josh Mcfarlane

This newsgroup deals with the standard c++. You might have better luck
in microsoft.public.vc.mfc or a visual studio newsgroup.

Thanks,
Josh McFarlane
 
R

Robert Macy

make certain you have all the libraries associated with all your header
files.
You can go to msn website search for each header file. I think you'll
find the library associated with them.

One quick check would be to switch to "line command".
Run a batch file to set up all the paths to *every* library you have
then type and run...
link /verbose @liblist.txt @objfilelist.txt >linkactivity.txt
just write a text file containing all the library names called
liblist.txt and a text file containing all the .obj files called
objfilelist.txt
then you can read the resulting text file, linkactivity.txt, for all
that happened.

In that resulting list the specific item the linker can't find will be
listed. Go to MSN website and find the missing library file that uses
that item.

- Robert -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top