Compiling Allegro with CPP support
Troy D Patterson

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?

ReyBrujo

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

RB

martinik

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

Matt Smith

obvious question

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

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

martinik

What compiler are you using?

Troy D Patterson

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

Thread #125617. Printed from Allegro.cc