Game Development Community

Problem Compiling the SDK! PLEASE HELP!

by Dimitris Vogiatzis · in Torque Game Engine · 05/12/2002 (7:56 am) · 13 replies

Hi,

I followed the instructions that there were on the webpage "Compiling forDummies like me". I skipped the part with changing nasm.exe path and I compiled with success the Torque lib.dsw. No Errors nothing. When I try to compile the Torque SDK.dsw It comes with 378 errors.

all it starts from this debug errors :
Creating library...
--------------------Configuration: opengl2d3d - Win32 Debug--------------------
Linking...
LINK : warning LNK4001: no object files specified; libraries used
LINK : warning LNK4001: no object files specified; libraries used


Creating library ../lib/out.VC6.DEBUG/opengl2d3d_DEBUG.lib and object ../lib/out.VC6.DEBUG/opengl2d3d_DEBUG.exp
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
opengl2d3d_DEBUG.exp : error LNK2001: unresolved external symbol _glAccum@8
opengl2d3d_DEBUG.exp : error LNK2001: unresolved external symbol _glActiveTextureARB@4
opengl2d3d_DEBUG.exp : error LNK2001: unresolved external symbol _glAllocateVertexBufferEXT@12
opengl2d3d_DEBUG.exp : error LNK2001: unresolved external symbol _glAlphaFunc@8
opengl2d3d_DEBUG.exp : error LNK2001: unresolved external symbol _glAreTexturesResident@12
opengl2d3d_DEBUG.exp : error LNK2001: unresolved external symbol _glArrayElement@4
opengl2d3d_DEBUG.exp : error LNK2001: unresolved external symbol _glAvailableVertexBufferEXT@0
opengl2d3d_DEBUG.exp : error LNK2001: unresolved external symbol _glBegin@4
opengl2d3d_DEBUG.exp : error LNK2001: unresolved external symbol _glBindTexture@8
opengl2d3d_DEBUG.exp : error LNK2001: unresolved external symbol _glBitmap@28
opengl2d3d_DEBUG.exp : error LNK2001: unresolved external symbol _glBlendFunc@8
.
.
.
.
./example/opengl2d3d_DEBUG.dll : fatal error LNK1120: 378 unresolved externals
Error executing link.exe.

torqueDemo_DEBUG.exe - 379 error(s), 13 warning(s)

I don't know is this happening. I'm not an expert on C++. I have Visual C++ 6.0 and SVP 5 installed. Nothing else from any SDK or whatever. Could someone propose something?

thanks

#1
05/13/2002 (5:20 pm)
I think that page is out of date there is no Torque Lib.dsw in the Release_1_1_1.

There is only one workspace now, did you run the two .reg files as per the instructions?
#2
05/27/2002 (3:48 am)
I am having the same problem and I have run both the registry files and I get the same errors all 379 of them.

Daniel
#3
05/27/2002 (4:03 am)
if you can live without directX support then you can delete the dependency to the opengl2d3d until you can figure out your problem.

-Tim aka Spock
#4
05/27/2002 (1:27 pm)
This is definitely what happens when the .reg files are not applied - VC doesn't build the .cc files, giving you those two warnings about no object code, and then all the link errors.

I know, because I forgot to apply them when I moved to my new machine the other day.
#5
05/27/2002 (1:50 pm)
Thats weird as I HAVE applied both the reg files, but I will try it again tomorrow and see what happens. I am running Windows 2000 Professional SP2.

Daniel
#6
05/28/2002 (11:09 pm)
Same Prob here - only this one lib - opengl2D3D will not compile correct.

I have applied the reggie patches.

Any suggestion ?

Freddy
#7
05/28/2002 (11:30 pm)
found it

the suggestion with the *.cc file was really good :))

In the registry are 2 settings for the cl

the second one you have to edit manually and add ;*cc

Then it works

Freddy
#8
07/14/2002 (3:22 pm)
Hi its old but its exaclty my problem. I added in the registry "*.cc" but Im still getting this damn error.
#9
07/15/2002 (1:06 am)
from your profile, I see you are German. The registry entries for the German Visual Studio differs from the English one. Search the forum for the solution, there were many threads about this. If you didn't succeed, you can email me.

Alex
#10
09/30/2002 (6:59 am)
I'm behind a firewall that only alows www , ftp and telnet.

WinCVS wants to use port 4201 or somthing, and so I'm a bit lost.

I just tried to telnet to unix server at my university, and then use the cvs there to download the new head, but after having ftp'ed it to my pc, I get a message when trying to open TorqueSDK.dsw - somthing about the file not made by VS6.

Anyone have a clue on where I went wrong?

I have successfully worked with ver 1.1.1 so the reg settings cannot be a problem. Could it be the download format from the cvs server to the unix system?

I really wish it was possible to download the newest version through an ftp.
#11
10/12/2002 (12:51 am)
I was having the same problem. I used CVS to get the source tree on Linux, since I store everything on my Linux Samba server. All the text-files had a single linefeed at the end of each line.. Windows uses the dumb CR-LF combination. I eventually just wrote a perl script to fix important files:
#! /usr/bin/perl

undef $/;

foreach (@ARGV) {
        open(READ,"< $_") or die "Can't read $_";
        $contents = <READ>;
        close(READ);

        $contents =~ s:\r*\n:\r\n:g;

        open(WRITE,"> $_") or die "Can't write $_";
        print WRITE $contents;
        close(WRITE);
        }
..I used this on the *.dsp and *.dsw files in ../vc6. I also fixed all *.mk and "Makefile" files.

Oddly enough, the perl -ni -e '