home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Compiling

by C_olin on 03/11/2004 00:47, 101 messages, last message: 04/04/2006 20:25, 57209 views, last view: 05/18/2024 21:17

I'm no noob to VC++ 6.0... but I have not gotten Cube to compile correctly!

I put all of the includes and libs where they are supposed to be in the vc++ folder.

And added the right linking stuff... but I still get unresolved externals.

And why doesn't it include a VC++ workspace?

Does anyone have project/workspace project files they are wiling to send to me?

This would help out me, and a lot of other poeple... thanks!

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages

#53: Re: ..

by D.plomat on 04/29/2004 11:14, refers to #52

Yes.

You should try a ldd on it to see if it is dynamically linked to libGL

reply to this message

#54: ..

by -=:gandalf:=- on 05/02/2004 09:42

I just tried to compile cube under Linux, but there is one problem:
/usr/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status
make: *** [client] Fehler 1

how can I fix this?
I think there ist just a missing libraray, but I don\'t know wich one, the prebuild binaries are running fine.

reply to this message

#55: is this a good complier?

by jcdpc on 05/06/2004 00:00

is microsoft visual c++ a good complier? i've been using icc-win but i can't figure out how to compile multiple files so i haven't gotten much farther than "hello world" (the fact that i'm using C for dummies to learn it doesn't help much either)
http://msdn.microsoft.com/visualc/

reply to this message

#56: ..

by e:n:i:g:m:a on 05/06/2004 19:59

Visual C++ is EXTREMELY good!! :-)

It beats all freeware compilers that I've found anyways.

If you decide to get VC++ (it's pretty pricy) you might wanna get the .NET edition instead: it comes with alot more features and the cube project file is .NET format

reply to this message

#57: Re: ..

by jcdpc@school on 05/06/2004 20:57, refers to #56

yeah, i'm getting the .net edition, my dad has a friend who is a professional programmer for Lucent (whcih is going downhill, so if you have any stock in that company get it back and invest in something else) any way, i'm getting it for free, because lucent doesn't need it anymore.

reply to this message

#58: ..

by arghvark on 05/06/2004 20:59

use mingw I will be putting together a 'howto' about compiling it soon also probably.

reply to this message

#59: ms C

by jcdpc on 05/07/2004 00:17

it's cool, i got the whole visual studio (basic,foxpro,interdev,j++.C++) it's awesome. I haven't tried compiling yet, but i made a few very minor changes to the code (replaced hellpig with kitty, that sort of thing) and i'll use interdev for my site. HA i'm so happy. :^)

reply to this message

#60: Re: ..

by Thalion on 05/07/2004 05:09, refers to #56

Since you guys seem to not know of that, Microsoft has recently released the compiler for free. It's pretty much the same as the older free Borland C++ compiler - command-line only, standard libraries (including STL) + you can download Platform SDK with all WinAPI headers/libs, but no MFC/ATL. Still, this should be enough to build Cube.

http://msdn.microsoft.com/visualc/vctoolkit2003/

reply to this message

#61: ..

by e:n:i:g:m:a on 05/07/2004 06:14

Speaking of compiling, where do I extract the source if I wanna make my own build?

reply to this message

#62: Re: ..

by Thalion on 05/07/2004 20:07, refers to #61

Wherever you want. Just copy .exe-files once they're generated.

reply to this message

#63: ..

by e:n:i:g:m:a on 05/08/2004 00:13

oh ok

I thought that it needed to access some of the cube files b4 it would compile itself... thx

reply to this message

#64: Re: ..

by pushplay on 05/08/2004 03:33, refers to #63

You want to put the source in something like cube/source.mod/src so that when the make file looks for ../../bin it will find it.

reply to this message

#65: Re: ..

by D.plomat on 05/10/2004 12:34, refers to #60

they released also the latest version?

about loading the project file, then someone having the Visual studio 7 has to cut'n paste the lines of options given to the commands by the project settings window to make a nice .bat that can be used with the command-line tools.

reply to this message

#66: Re: ..

by Thalion on 05/11/2004 03:29, refers to #65

I think it is the same compiler as distributed with VS.NET 2003.

As for cut'n'paste - no need for that. I think there was an option to export a makefile for a project somewhere in VS.

reply to this message

#67: Have compiled with VC++ 6

by thirdrock on 05/11/2004 04:32

Ok, to get cube compiled under vc6 you need to do the following.
1. Change the two "void function can't return a value" errors.
This means changing a line of code that looks something like this ...
if (blah) return loadgameexit()
to
if (blah) { loadgameexit() ; return;}

2. You need to add all of the .c files in the enet directory. That gets rid of the unresolved externals.

3. You need to add the neccesary libraries to the linker section of your project.

4. You need to copy the DLL's in the bin directory and the supporting directories (data etc) to the directory where your executable is created (usually debug or release).

HTH,
Ian

reply to this message

#68: Re: Have compiled with VC++ 6

by jcdpc on 05/11/2004 12:27, refers to #67

what about VC++ 5 (professional edition)? i'm a noob and i cant compile anything thats more than one file, so if you give instructions please be specific.

reply to this message

#69: help

by RuneArlin on 05/11/2004 20:47

Could someone please give step by step instructions on how to compile with mingw? I've only used Dev C++ until now, and never had to use miongw, so Im sort of lost as to what to do with it. I have searched the forums and tried to do what other people have posted, with no success.

Could someone please lend a hand?

reply to this message

#70: Tutorial

by arghvark on 05/11/2004 22:53

I wrote up a little tutorial, dont know how helpful it will be but anyway http://www.superrobotpirateninja.org/index.php?itemid=14

reply to this message

#71: Here is my workspace

by thirdrock on 05/12/2004 05:31

Here is a link to my VC6 workspace and project file.

http://members.optusnet.com.au/ianpatty/ian/cube/mycube.dsw

http://members.optusnet.com.au/ianpatty/ian/cube/mycube.dsp

The workspace file contains almost nothing, I created the project first then idiotic MSVS screwed up my settings by not having a workspace, so I just made a workspace and added the project. Theoretically, you just need the project file. Both are there, just in case.

Please note that I had to change the source code to get it to compile as I said in another message.

If you really are a noob to C/C++, I'm not sure what building the source code is going to do for you. There are binaries for Winders and they work just fine ... unless you want a baptism by fire then knock yourself out :)

Anyway, have fun

Ian

reply to this message

#72: :DDDD

by RuneArlin on 05/12/2004 06:33

Arghvark, you are my new best friend. Thank you so much! It turns out I was just making some mistakes.

reply to this message

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
54039147 visitors requested 71819826 pages
page created in 0.047 seconds using 9 queries
hosted by Boost Digital