Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Compiling Allegro with CPP support

This thread is locked; no one can reply to it. rss feed Print
Compiling Allegro with CPP support
Troy D Patterson
Member #41
April 2000
avatar

For some odd reason I can't make CPP program with Allegro. I get errors.. I can't even copy the exhello.c and change it to cpp without getting an error..... any hints?

---------------------------------------
I am Troy
KQ Lives!|Studio-Griz

ReyBrujo
Moderator
January 2001
avatar

Post your code here to check! 96% of my programs are made in C++, and never had a trouble.

RB

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

martinik
Member #1,521
September 2000
avatar

What Allegro version do you have?
I have 100% program in C++ and it works fine!
I´m using 3.9.36

------------------------------
Web: [url http://dusek.host.sk]
Last Allegro game: 3D tetris - MDTris

Matt Smith
Member #783
November 2000

obvious question

Do you have the C++ compiler installed? (gpp)

read the Allegro FAQ and the DJGPP one too for details. 8-)

martinik
Member #1,521
September 2000
avatar

What compiler are you using?

------------------------------
Web: [url http://dusek.host.sk]
Last Allegro game: 3D tetris - MDTris

Troy D Patterson
Member #41
April 2000
avatar

Well... MattSmith was right. Some way or another I didn't have gpp installed and it wasn't letting me write allegro programs in windows. When I reinstalled DJGPP it worked.

It was weird though I could have
code: #include <allegro.h>
void main()
{
allegro_init();
allegro_message("Hello");
}END_OF_MAIN();

It'd compile under c but not c++. Well that error is done.. Thanks Matt

---------------------------------------
I am Troy
KQ Lives!|Studio-Griz

Go to: