help with macro
I'd like to set up some macros that will do the following:
scan 2 different directories (scanning each differently):
1. the local directory where main is for "wgnuplot.exe"
2. the /bin or /usr/share or /usr/bin directory for "gnuplot" (i'm on a windows computer right now, I'm not sure where its located)
Once I've used the above test to basically define the type of OS, I can run my other macros containing different system() calls to wgnuplot.exe or gnuplot respectively.
I know, I know, trying to figure out what OS is being used is pointless, but this program will only be ran right after either I compile it or my teacher compiles it. This isn't going out to the masses or anything.
That sounds more like a job for a makefile, which can then define the appropriate OS (-DWIN32 or -DLINUX...)
yea thanks, I think in a similar prior post of mine that was your suggestion, but will that work if i know that my teacher will compile within Dev C++?
I know Dev will generate an automake file of sorts, does it by default compile with -D?
I've never used Dev C++, but if it uses makefiles I don't see why it wouldn't work. Every compiler I've seen use -D to define macros.
Originally Posted by dudeomanodude
(Hampton, VA eh? I lived in Newport Snooze for 5 years. ;) )
been here for 8 years now, it's not too bad, but I really miss Germany, that's where I'm from.
Originally Posted by cpjust