Compiling error. Please help.

Compiling error. Please help.

Post by Peter S. » Tue, 24 Sep 2002 16:05:48



Hello,
I downloaded toon.exe from the MSDN code center. I try to complie it, but
not successful.
The errors are shown below. I am using DirectX 8.1b SDK.
Can you help me how to fix this problem?
Thanks.

Compiling...
toon.cpp
Linking...
toon.obj : error LNK2001: unresolved external symbol "public: virtual int

toon.obj : error LNK2001: unresolved external symbol "public: virtual long
__thiscall CD3DApplication::Create(struct HINSTANCE__ *)"

toon.obj : error LNK2001: unresolved external symbol "public: virtual void

toon.obj : error LNK2001: unresolved external symbol "protected: virtual
long __thiscall CD3DApplication::AdjustWindowForChange(void)"

toon.obj : error LNK2001: unresolved external symbol "public: __thiscall
CD3DFont::CD3DFont(char *,unsigned long,unsigned long)"

toon.obj : error LNK2001: unresolved external symbol "public: __thiscall

toon.obj : error LNK2001: unresolved external symbol "public: virtual long
__thiscall CD3DApplication::MsgProc(struct HWND__ *,unsigned int,unsigned

toon.obj : error LNK2001: unresolved external symbol "public: long
__thiscall CD3DFont::DrawTextA(float,float,unsigned long,char *,unsigned

toon.obj : error LNK2001: unresolved external symbol "public: long
__thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice8 *)"

toon.obj : error LNK2001: unresolved external symbol "public: long
__thiscall CD3DFont::RestoreDeviceObjects(void)"

toon.obj : error LNK2001: unresolved external symbol "public: long
__thiscall CD3DFont::InvalidateDeviceObjects(void)"

toon.obj : error LNK2001: unresolved external symbol "public: long
__thiscall CD3DFont::DeleteDeviceObjects(void)"

toon.obj : error LNK2001: unresolved external symbol "public: __thiscall

Debug/Toon.exe : fatal error LNK1120: 13 unresolved externals

 
 
 

Compiling error. Please help.

Post by Felix Engelhard » Tue, 24 Sep 2002 18:56:40


> I downloaded toon.exe from the MSDN code center. I try to complie it, but
> not successful.
> The errors are shown below. I am using DirectX 8.1b SDK.
> Can you help me how to fix this problem?

> [...]
> Linking...
> toon.obj : error LNK2001: unresolved external symbol "public: virtual int

> [...]
> toon.obj : error LNK2001: unresolved external symbol "public: __thiscall
> CD3DFont::CD3DFont(char *,unsigned long,unsigned long)"


Are the source files from the SDK sample framework included in the project
(especially
d3dapp.cpp and d3dfont.cpp)?

 
 
 

Compiling error. Please help.

Post by Jian-Shen Lin[M » Tue, 24 Sep 2002 21:09:50


There are some conflict between SDK and DirectX lib, you can set the
DirectX lib as first search path in the
VC IDE environment, you also can set the include file as the first path.

Then you can tuning some compiler or link option such link with debug lib
or not, The you can compiler it successfully.

Best Regards

Jian Shen

This posting is provided "AS IS" with no warranties, and confers no rights.

 
 
 

Compiling error. Please help.

Post by Peter S. » Wed, 25 Sep 2002 02:12:47


Hello, Jian-Shen,
Do you mean that the path of DirectX lib is C:\DXSDK\lib (default) and
include file path is C:\DXSDK\include (default)?
Thanks.



Quote:> There are some conflict between SDK and DirectX lib, you can set the
> DirectX lib as first search path in the
> VC IDE environment, you also can set the include file as the first path.

> Then you can tuning some compiler or link option such link with debug lib
> or not, The you can compiler it successfully.

> Best Regards

> Jian Shen

> This posting is provided "AS IS" with no warranties, and confers no
rights.

 
 
 

Compiling error. Please help.

Post by Philip Taylor[MS » Wed, 25 Sep 2002 06:02:26


this sounds like VS is not finding the common folder for the sample
framework. this sample assumes a default installation into the 8.1 SDK
samples folder, so it can find d3dapp.cpp, etc. make sure those files are
findable.

also do you have the SDK paths for headers and libs first?


> Hello,
> I downloaded toon.exe from the MSDN code center. I try to complie it, but
> not successful.
> The errors are shown below. I am using DirectX 8.1b SDK.
> Can you help me how to fix this problem?
> Thanks.

> Compiling...
> toon.cpp
> Linking...
> toon.obj : error LNK2001: unresolved external symbol "public: virtual int

> toon.obj : error LNK2001: unresolved external symbol "public: virtual long
> __thiscall CD3DApplication::Create(struct HINSTANCE__ *)"

> toon.obj : error LNK2001: unresolved external symbol "public: virtual void

> toon.obj : error LNK2001: unresolved external symbol "protected: virtual
> long __thiscall CD3DApplication::AdjustWindowForChange(void)"

> toon.obj : error LNK2001: unresolved external symbol "public: __thiscall
> CD3DFont::CD3DFont(char *,unsigned long,unsigned long)"

> toon.obj : error LNK2001: unresolved external symbol "public: __thiscall

> toon.obj : error LNK2001: unresolved external symbol "public: virtual long
> __thiscall CD3DApplication::MsgProc(struct HWND__ *,unsigned int,unsigned

> toon.obj : error LNK2001: unresolved external symbol "public: long
> __thiscall CD3DFont::DrawTextA(float,float,unsigned long,char *,unsigned

> toon.obj : error LNK2001: unresolved external symbol "public: long
> __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice8 *)"

> toon.obj : error LNK2001: unresolved external symbol "public: long
> __thiscall CD3DFont::RestoreDeviceObjects(void)"

> toon.obj : error LNK2001: unresolved external symbol "public: long
> __thiscall CD3DFont::InvalidateDeviceObjects(void)"

> toon.obj : error LNK2001: unresolved external symbol "public: long
> __thiscall CD3DFont::DeleteDeviceObjects(void)"

> toon.obj : error LNK2001: unresolved external symbol "public: __thiscall

> Debug/Toon.exe : fatal error LNK1120: 13 unresolved externals

 
 
 

1. I am having a compiling error for a beta versin of gnuplot, please help

I need help fixing the following compile time error

/mnt/gnuplot/gnuplot-beta273/gnuplot# make
gcc -o gnuplot alloc.o binary.o bitmap.o command.o contour.o datafile.o
eval.o fit.o graphics.o graph3d.o help.o hidden3d.o internal.o interpol.o
matrix.o misc.o parse.o plot.o plot2d.o plot3d.o readline.o scanner.o
set.o show.o specfun.o standard.o term.o util.o
util3d.o  version.o  -lvga -lm
specfun.o: In function `f_gamma':
/mnt/gnuplot/gnuplot-beta273/gnuplot/specfun.c:299: undefined reference
to `gamma'
specfun.o: In function `f_lgamma':
/mnt/gnuplot/gnuplot-beta273/gnuplot/specfun.c:312: undefined reference
to `gamma'
specfun.o: In function `confrac':
/mnt/gnuplot/gnuplot-beta273/gnuplot/specfun.c:417: undefined reference
to `gamma'
/mnt/gnuplot/gnuplot-beta273/gnuplot/specfun.c:417: undefined reference
to `gamma'
/mnt/gnuplot/gnuplot-beta273/gnuplot/specfun.c:417: undefined reference
to `gamma'
specfun.o:/mnt/gnuplot/gnuplot-beta273/gnuplot/specfun.c:492: more
undefined references to `gamma' follow
make: *** [gnuplot] Error 1
Press any key to continue...

2. Anybody thought to thank Chuck B. lately?

3. HELP!!!! PVMPOV compile error

4. Anyone compiled CDX 1.6 under BCB3/DX6.1 ?

5. BMRT 2.3.5 libribout compile error...help

6. Flame IPAS - Try The Yost Group: FLAME_I.AXP

7. error compiling C - RI_NULL under Irix6.3 - help!!!

8. big JPeg scale

9. JPEG library, compile error with JDAPI.C, help ...

10. Help ! error in compile

11. 1.1.24 compile error...help?

12. ***HELP*** Please help with system error

13. Bmp24ToIm.cpp Magic-Software BCC55 Compiling help please.