PDA

View Full Version : Compile errors under Ubuntu 10.10


Xenphor
February 11th, 2011, 20:49
I'm using the latest source from here:

svn co -r 299 https://shamusworld.gotdns.org/svn/virtualjaguar/trunk .

Here's the error I get:
-e *** Compiling src/sdlemu_config.cpp...
src/sdlemu_config.cpp: In function ‘int sdlemu_init_config(const char*)’:
src/sdlemu_config.cpp:79: error: ‘fopen’ was not declared in this scope
src/sdlemu_config.cpp:82: error: ‘fseek’ was not declared in this scope
src/sdlemu_config.cpp:83: error: ‘ftell’ was not declared in this scope
src/sdlemu_config.cpp:87: error: ‘fread’ was not declared in this scope
src/sdlemu_config.cpp:112: error: ‘fclose’ was not declared in this scope
make: *** [obj/sdlemu_config.o] Error 1

Not really sure where to go from here unfortunately.

Shamus
February 13th, 2011, 13:54
It's missing a #include <stdio.h> line near the top. Add that, and you should be good to go. :thumb: