PDA

View Full Version : Compile error?


Relic2K
01-11-2003, 09:33 AM
I have installed all the packages that were required, libSDL, SDL_Mixer, etc and when I go to compile either the release code or the CVS code this is what I get for an error;

fx_man.c:1237: warning: assignment makes pointer from integer without a cast
fx_man.c:1242: warning: implicit declaration of function `Mix_PlayMusic'
fx_man.c: In function `MUSIC_FadeVolume':
fx_man.c:1292: warning: implicit declaration of function `Mix_FadeOutMusic'
fx_man.c: In function `MUSIC_FadeActive':
fx_man.c:1299: warning: implicit declaration of function `Mix_FadingMusic'
fx_man.c:1299: `MIX_FADING_OUT' undeclared (first use in this function)
make: *** [fx_man.o] Error 1

Any ideas why this is occuring ? I have the retail version that I am trying to compile the source for.

OS=Mandrake 9
drivers= latest NVidia drivers
vid card = G4 Ti 4600 w/128
images/icons/confused.gif

jbailey
01-11-2003, 11:45 AM
You need to be sure all your include directories and
library directories are properly specified in the compiler environment. The reason for the error is that the compiler can't find the reference called for, it's probably in one of the header files. Do a file search for 'MIX_FADING_OUT' in all your header and lib files, which ever file it's being reported in, make sure that file's directory is in the environment, or you could copy the header file into the local source directory and change the global calls to local ones e.g. - #include <stdio.h> <- global call #include "stdio.h" <- local call. If your using a gui instead of a command-line compiler, go to your project settings and check that the proper directories are specified.

jbailey

jbailey
01-11-2003, 02:13 PM
try this link:

http://www.3drealms.com/stuff/rottcdi.zip

it might help. if not, try using a slow down utility like moslo...

jbailey

Relic2K
01-11-2003, 02:41 PM
Okay you will have to explain what exactly that is ? I downloaded it, but not a clue how to use it. Oh yeah I should add too, that my wife is running NTFS filesystem, not sure if that would matter at all but it may.

jbailey
01-11-2003, 03:37 PM
If you mean moslo, it's a utility that you put on your environment path and say for example you want to run some old dos program that is not running properly due to the increased speed of your system, what moslo does is to 'emulate' a slower system a good example command line for moslo would be:

moslo /20 execuatable name

this means 20% speed of your system (or it may mean 20% speed of a ibm xt, not sure which).

If all of that doesn't work try:

http://www.brain.uni-freiburg.de/~klaus/pascal/runerr200/tppatch.zip

this program will patch executables that give the 'runtime 200 error' so they will run properly on fast computers.

jbailey

Relic2K
01-12-2003, 12:41 AM
I finally got it to compile, I had to redownload the SDL Source packages again, and force them to install. I was missing the SDL_mixer_devel package. Now a bigger problem though. My ROTT 1.2 Retail will not install on XP ? The Install.exe will not run it just gives me an error 200 and that all. I though it may have been corrupted so I downloaded the ROTT 1.3 shareware just to check, and it did the same thing. I have PKWare 5.0 installed but it will not look at the extracted retail files..rott12r._1, rott12r._2...etc. Any ideas ? Damn this is starting to fustrate me LOL.

Relic2K
01-15-2003, 10:45 AM
That didn't work either.

rdc
01-15-2003, 02:24 PM
I have the Darkwar CD and what I did was just copy all the files from the RottInst folder on the CD (the files were not compressed) to my ROTT folder instead of running the install. You don't mention if you have a CD, but you if do, you might want to check for a similiar folder.

Relic2K
01-16-2003, 05:21 AM
I don't have that game.