gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > C++ compile weirdness

#50169 - blaisef01 - Sat Aug 06, 2005 6:23 am

Hi,

Decided to use the new template as it's a lot more cleaner than my hacked together effort. But when i try and use cpp files in the project the compiler whines about not being able to find the headers and it doesn't like any of my classes either. but the c files with no classes in them are fine.

What am i doing wrong?

Cheers

#50175 - blaisef01 - Sat Aug 06, 2005 6:35 am

Or even better if someone has a template project that allows
1) the use of cpp files
2) the use of gbfs
3) support for resource files (but is that neccesary seeing as we have gbfs)

Cheers

#50180 - blaisef01 - Sat Aug 06, 2005 7:34 am

Duh!!

Turns out i failed to put
CXXFLAGS := $(CFLAGS)

in the makefile. Now it compiles CPP files now for the rest of my problems..

#50197 - floatstarpx - Sat Aug 06, 2005 1:25 pm

blaisef01 wrote:
Duh!!

Turns out i failed to put
CXXFLAGS := $(CFLAGS)

in the makefile. Now it compiles CPP files now for the rest of my problems..


yeah, that one stumped me for quite a while... :(
i'm no good with makefiles.