VOGONS


First post, by kaliban

User metadata
Rank Newbie
Rank
Newbie

I am new to programming and i am tring to compile the source code with dev-cpp 4.9.9.2 and i keep getting all kinds of link errors, what am i doing wrong?, is it dev-cpp or am i not doing something right?

The only constant in life is change

Reply 1 of 15, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

link errors means that you don't have the support libs at the right place or something like that.
Dosbox uses configure and makefiles to configure and compile

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 15, by kaliban

User metadata
Rank Newbie
Rank
Newbie

I don't have access to Linux,and I have included the include files for dosbox in my devcpp enviroment, and all the makefiles have either the .am or .in extension. Do I need Cmake? 😒

The only constant in life is change

Reply 3 of 15, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

no Cmake.
dunno on how to compile it in devcpp. Can't devcpp import the visual C project file or something like that ?

Water flows down the stream
How to ask questions the smart way!

Reply 4 of 15, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

I would ask in a Dev-CPP forum or mailing list, you probably need to set up additional stuff for compiling Dosbox with it. BUT as Qbix said you also need the libs Dosbox depends upon: SDL, SDL_sound, libpng, SDL_net... (and those might need additional stuff)
OR try installing Mingw+Msys to get a similar environment for compiling as Linux has and compile with that.

Also make sure you really NEED to compile Dosbox on your own...

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 5 of 15, by kaliban

User metadata
Rank Newbie
Rank
Newbie

yes, but every time i do i have to get into the headers and change a few things so then it can find the other headers tha it needs,devcpp might be broken in this so i will go ask on the devcpp forum 😢

The only constant in life is change

Reply 9 of 15, by kaliban

User metadata
Rank Newbie
Rank
Newbie

i have dont examples and I am bored with them, i even tried to compile and old version of GEST (0.49 i think) and i still get some of the same errors with it as I do with dosbox

Iwanted the source code so i could look through it to help in learning to program

The only constant in life is change

Reply 11 of 15, by Kisai

User metadata
Rank Member
Rank
Member
kaliban wrote:

I am new to programming and i am tring to compile the source code with dev-cpp 4.9.9.2 and i keep getting all kinds of link errors, what am i doing wrong?, is it dev-cpp or am i not doing something right?

Dosbox needs:
zlib ( http://www.zlib.net/ )
libpng ( http://www.libpng.org/pub/png/libpng.html )
sdl ( http://www.libsdl.org/download-1.2.php )
sdl_net ( http://www.libsdl.org/projects/SDL_net/ )
pdcurses ( http://pdcurses.sourceforge.net/ )

And that's just to compile dosbox with Visual Studio.

kaliban wrote:

i have dont examples and I am bored with them, i even tried to compile and old version of GEST (0.49 i think) and i still get some of the same errors with it as I do with dosbox

Iwanted the source code so i could look through it to help in learning to program

Dosbox, and indeed most large applications are not where you want to start if you're learning C/C++. If you can't setup the build environment, then you should start by learning how to do that, or selecting a different build environment (Dosbox can be compiled with Visual Studio Express 2005/2008/2010 on Windows)

Reply 14 of 15, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

try the old and trusted way of a mingw/msys combination...

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 15 of 15, by kaliban

User metadata
Rank Newbie
Rank
Newbie

well here is the error text

Attachments

  • Filename
    dosbox-errors.txt
    File size
    10.46 KiB
    Downloads
    471 downloads
    File license
    Fair use/fair dealing exception

The only constant in life is change