Pthread.h and gllist.h
by Erik Yuzwa · in Torque Game Engine · 08/24/2003 (12:23 pm) · 9 replies
Hi all,
Just trying to create a new project from scratch using the Torque engine. I've successfully been able to compile the majority of the latest HEAD code, but am stumped by 2 fatal errors.
1. In d3dgl.h, there's a macro definition:
#ifndef _GLLIST_H_
#include "platformWin32/gllist.h"
#endif
which is giving me problems. glllist.h is
NOT in the platformWin32 folder! The only
one I can find is in the lib/opengl2d3d folder. Before I make any modification, was there any reason for this? (It's been that way since Rev 1.1.2)
2. It cannot find the pthread.h include file. In fact, with all my versions of Visual Studio on my hard drive, pthread.h can't be found anywhere. Is there a pre-processor value I need to #define to get this working??
thanks all for any help!
Just trying to create a new project from scratch using the Torque engine. I've successfully been able to compile the majority of the latest HEAD code, but am stumped by 2 fatal errors.
1. In d3dgl.h, there's a macro definition:
#ifndef _GLLIST_H_
#include "platformWin32/gllist.h"
#endif
which is giving me problems. glllist.h is
NOT in the platformWin32 folder! The only
one I can find is in the lib/opengl2d3d folder. Before I make any modification, was there any reason for this? (It's been that way since Rev 1.1.2)
2. It cannot find the pthread.h include file. In fact, with all my versions of Visual Studio on my hard drive, pthread.h can't be found anywhere. Is there a pre-processor value I need to #define to get this working??
thanks all for any help!
About the author
multi-talented game and web developer based in the glacial ice-caps of Calgary, Alberta. I'm versed in C++, and trying out Torque Game Builder Pro. I hope to get to know you, drop me a line and let's chat.
#2
Hmmm I wonder why there's no #define's around this include file then.
ie. #ifdef _WIN32
#include //whatever
#else
#include
#endif
???
Or perhaps I need to customize the compile so that some object files are created before it tackles the platform code?
I'm studying the Torque Demo example project workspace, but don't notice anything out of the ordinary there (ie. custom build steps or anything)..
btw. I've converted the project back to VS6.0 and I still get the same two fatal error messages..:(
08/24/2003 (5:34 pm)
Thanks for the fast reply Stuart!Hmmm I wonder why there's no #define's around this include file then.
ie. #ifdef _WIN32
#include
#else
#include
#endif
???
Or perhaps I need to customize the compile so that some object files are created before it tackles the platform code?
I'm studying the Torque Demo example project workspace, but don't notice anything out of the ordinary there (ie. custom build steps or anything)..
btw. I've converted the project back to VS6.0 and I still get the same two fatal error messages..:(
#3
I've just created a new TGE project and I'm getteing the same
cannot open include file 'pthread.h' error.
Have you managed to sort this yet?
Thanks for any help!
11/11/2003 (5:09 am)
Hi EricI've just created a new TGE project and I'm getteing the same
cannot open include file 'pthread.h' error.
Have you managed to sort this yet?
Thanks for any help!
#4
11/11/2003 (10:33 am)
Are you guys sure that _WIN32 is defined?
#5
The #include is in the platformNetAsync.h file, that file and platformNetAsync.cc are not include in the TorqueDemo platform folder so I deleted them.
I'm now getting the following linker errors:
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_sync_wrote
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_sync_buffer
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_sync_reset
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_sync_pageseek
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_page_serialno
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_stream_clear
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_comment_clear
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_info_clear
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_synthesis_headerin
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_stream_packetout
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_stream_pagein
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_comment_init
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_info_init
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_stream_init
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_page_granulepos
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_block_init
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_synthesis_init
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_block_clear
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_dsp_clear
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_stream_reset
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_synthesis_blockin
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_synthesis_pcmout
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_synthesis
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_sync_init
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_sync_clear
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_page_eos
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_packet_blocksize
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_page_continued
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_stream_packetpeek
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_synthesis_read
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_info_blocksize
Debug/Mullets.exe : fatal error LNK1120: 31 unresolved externals
Error executing link.exe.
has anyone got any ideas?
thanks for any help!
11/11/2003 (12:43 pm)
I did create a Win32 application, is that what you mean?The #include
I'm now getting the following linker errors:
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_sync_wrote
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_sync_buffer
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_sync_reset
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_sync_pageseek
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_page_serialno
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_stream_clear
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_comment_clear
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_info_clear
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_synthesis_headerin
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_stream_packetout
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_stream_pagein
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_comment_init
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_info_init
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_stream_init
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_page_granulepos
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_block_init
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_synthesis_init
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_block_clear
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_dsp_clear
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_stream_reset
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_synthesis_blockin
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_synthesis_pcmout
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_synthesis
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_sync_init
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_sync_clear
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_page_eos
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_packet_blocksize
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_page_continued
vorbisStream.obj : error LNK2001: unresolved external symbol _ogg_stream_packetpeek
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_synthesis_read
vorbisStream.obj : error LNK2001: unresolved external symbol _vorbis_info_blocksize
Debug/Mullets.exe : fatal error LNK1120: 31 unresolved externals
Error executing link.exe.
has anyone got any ideas?
thanks for any help!
#6
www.xiph.org/ogg/vorbis/
11/11/2003 (12:56 pm)
First guess.... Did you download the vorbis source code? It isn't included with TGE.www.xiph.org/ogg/vorbis/
#7
11/13/2003 (2:51 am)
I'm still having problems. Thanks to Harold for the reply. I have downloaded vorbis and i'm still getting the same errors when compiling. Has anyone got any other ideas please?
#8
12/12/2004 (8:39 am)
You need to include vorbis_static_mt.lib and ogg_static.lib to your project settings.
#9
05/24/2005 (7:05 pm)
For Some reason the files d3dgl.h and d3dgl.cc are not included in the Synapse Lighting Pack Visual C++ project. I had added them to my build with out checking there project to make sure they were being used. As it turns out they arn't so all you have to do to build successfully is remove them from your project.
Associate James Urquhart
2) I think pthread.h is something to do with linux/bsd/unix, since its in my linux include directory =)