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, 58363 views, last view: 09/29/2024 04: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

#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

#73: ;____;

by Grimmy2k4 on 05/12/2004 07:06

I thought I was your best friend. ;-;
Seriously though, thanks arghvark. We were horribly stuck.

reply to this message

#74: Re: ;____;

by Bascule on 05/12/2004 23:11, refers to #73

Well, I'm still stuck.

I downloaded MySys and followed all the tutorial instructions, but ended up with the following error message at the final stage: 'make'

$ make
g++ -Wall -O3 -fsigned-char -fomit-frame-pointer -I../include -c -o client.o client.cpp
make: g++: Command not found
make: *** [client.o] Error 127

I've tried lots of different places to put the source.gcc/src folder, but get the same prob every time. Looks to me like it's being caused by the very first line of the makefile:
CXX=g++
CXXOPTFLAGS=-Wall -O3 -fsigned-char -fomit-frame-pointer
CXXFLAGS=$(CXXOPTFLAGS) -I../include

Any ideas? This is the very first time I've tried to do any compiling , so please bear with me for the noobish questions.

reply to this message

#75: Re: Here is my workspace

by Bascule on 05/12/2004 23:13, refers to #71

Yes, I do want a baptism of fire, just to see if I can do it (compile the source that is...)

Once I've cracked that , then I may go on to playing with the code 'just for fun...'

reply to this message

#76: Re: ;____;

by arghvark on 05/12/2004 23:25, refers to #74

I think that error means that it cant find the compiler, are you sure you set up the path right?

reply to this message

#77: Re: Here is my workspace

by thirdrock on 05/13/2004 04:51, refers to #75

Did you get it to compile with my project/workspace?

reply to this message

#78: Re: ;____;

by Bascule on 05/13/2004 08:18, refers to #76

It depends what you mean by the compiler...

My path (under WindowsXP) leads to make.exe, which, AFAIK, is the application that starts the whole process.

If you mean something like MinGW.exe, then I'm not so sure.

What specifically does the path need to lead to?

reply to this message

#79: Re: Here is my workspace

by Bascule on 05/13/2004 08:19, refers to #77

No. As you can see from above, I'm trying to use MYSYS/MinGW.

reply to this message

#80: Re: ;____;

by D.plomat on 05/13/2004 10:56, refers to #78

> What specifically does the path need to lead to?

it must link to Mingw's make, you can check that in msys: type this command:

which make

it should say: /bin/make i think.
if it points to another make on your system (like Delphi's make) then you have a peoblem with your path, but normally a fresh install of mingw sets the right path in mingw environment.

reply to this message

#81: Right...

by Bascule on 05/14/2004 21:16

...I've cracked it now, having downloaded MinGW as well as MYSYS (arghvark, your HowTo could use a little more clarity).

So what can I do, easily, to make some obvious changes to Cube, but aren't too difficult for a complete coding newbie.

Obviously, jumping straight into the Cube source is not a good starting place to learn C++, but there must be stuff I can do that will make me feel like a real programmer?

I have re-instated a commented-out line that puts a trail on the CG bullets and that worked OK, so what sort of other things can I try...

reply to this message

#82: Re: Right...

by arghvark on 05/15/2004 03:32, refers to #81

Could you tell me what parts need clarified, I'm new to the whole writing howto's thing any input is of extreme help.

reply to this message

#83: Re: Right...

by Bascule on 05/15/2004 20:47, refers to #82

Comments on HowTo:

Just downloading mysys is not enough, MinGW is required as well.

Path setting section is good, I would have struggled to know how to do that in XP. Foe clarity, needs to state that the path is the make.exe.

It's a bit unclear exactly where the source.gcc folder should be placed, as you are mixing up fixed paths (...create the folder C:\mysys\mingw\bin) with relative ones (...or wherever you created x/y/z). This is what caught me out, as I didn't place the new bin folder in the right place in the folder structure.

It would be better when editing the .bat file to just say replace cube.exe with my_cube.exe, as people may have personalised their settings and nor want the ones you provided.

reply to this message

#84: Someone more knowledgeable and helpful too

by arghvark on 05/24/2004 00:26

I think someone who is more knowledge able then I am and helpful too, should post a mingw friendly version of the newest cube release's source code.

:)

/me bats eyelashes and winks.

reply to this message

#85: ..

by Thalion on 05/24/2004 15:32

-sigh-

Here you go:

http://www.webfile.ru/12034

Site is in Russian, but I hope you can figure it out that the gray link in the middle of the page is "Download" =)

This link will stay online for only a week, so I hope someone will mirror it by then.

This time it comes with a (sort of) instruction. Hope this will reduce the number of questions like "where do I unpack it?" and "why is there no 'bin' folder??" =) Well, at least now I will be able to reply with just "RTFM"...


P.S. Special thanks for this release goes to Mark "Fanatic" Pullen. Your maps are almost as good as
your music =)

reply to this message

#86: Re: ..

by Thalion on 05/24/2004 15:43, refers to #85

Oh yes, and expect the Makefile for free Microsoft compiler to follow soon =)

reply to this message

#87: ..

by arghvark on 05/24/2004 20:51

Thank you to the max :)

reply to this message

#88: ..

by arghvark on 05/24/2004 21:07

There is a mirror here:
http://www.superrobotpirateninja.org/hosted/cube_2004_05_22_src_mingw.zip

reply to this message

#89: mingw

by me1.0 on 05/25/2004 21:20

I know just enough to really make a mess of things. Only progamming type experience was a fortran 77 class in college about 10 years ago. Followed directions for using mingw, but when I try to 'make' I get

make
g++ -Wall -03 -fsigned-char fomit-frame-pointer -I../include -c -o client.o client.cpp
make: g++: Command not found
make: *** [client.o]Error 127

I am hoping I am making some minor mistake. Any help would be much appreciated.

reply to this message

#90: ..

by >driAn<. on 05/25/2004 21:50

it seems you havent installed all needed compiler stuff...

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
56748418 visitors requested 74661020 pages
page created in 0.143 seconds using 10 queries
hosted by Boost Digital