Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Leonhard
User
Posts: 55 Joined: Fri Jun 16, 2006 7:43 am
Post
by Leonhard » Mon Jul 16, 2007 12:27 pm
I need this constant to chech, if the build were a shared-dll or not!
inc.
Enthusiast
Posts: 406 Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER
Post
by inc. » Mon Jul 16, 2007 5:46 pm
PB comes with nice compiler environment constants, ... what about:
#PB_COMPILER_HOME+"compiler\"
There do check for the compilers file output and therefore if the output gots the .dll suffix.
Check out OOP support for PB here!
Trond
Always Here
Posts: 7446 Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway
Post
by Trond » Mon Jul 16, 2007 6:34 pm
If the output is already created it's way to late.
inc.
Enthusiast
Posts: 406 Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER
Post
by inc. » Tue Jul 17, 2007 8:22 am
I did interprete his words as "If the build out of the compilation is a shard dll or not". So to me it seems he wants to check the output?
Check out OOP support for PB here!
Fred
Administrator
Posts: 18161 Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:
Post
by Fred » Tue Jul 17, 2007 10:48 am
Sounds like an acceptable wish to me, as it can do conditional compiling depending of the output mode.
srod
PureBasic Expert
Posts: 10589 Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...
Post
by srod » Tue Jul 17, 2007 11:58 am
Yes that would be great. At the moment I have to set my own constant and check the presence of that in order to determine whether a shared dll is being created.
This would be very useful indeed.
I may look like a mule, but I'm not a complete ass.