Please add options /INCLUDE and /RELATIVE to the compiler
Posted: Tue Oct 12, 2010 9:50 am
Like most traditional compiler/linkers, please add a compiler option /INCLUDE as a search path for IncludeFile/XIncludeFile. Also, please add a compiler option /RELATIVE to resolve IncludeFile/XIncludeFile paths relative to the particular file being examined instead of just the main source file.
Trying to work with PureBasic from the command line is excruciatingly difficult. I already can't split files away from my projects as reusable code because IncludeFile/XIncludeFile is so difficult to work with. I want "one" variant of a particular library on my system which all projects tap into instead of having to copy it into every project.
Relative paths and /INCLUDE is a beautiful solution. When working with C/C++, compiling on -any- system is a complete no brainer. All of my libraries and compilers are stored in a very logical directory structure and commanded by a custom build system that allows me to compile anywhere and everywhere by running one shell file to automatically configure my environment.
For command line compiler's sake, please add these features. I want to compile my entire project from one shell script and not have to worry about whether my relative path hack is going to freak out because the path is too deep or whether I remembered to update my project's libraries with the latest revision.
I am THIS close *makes a suggestively small space between thumb and index finger* to completely abandoning the IDE and hacking together my own completely incompatible compile-time parser to splice out includes on the fly to imitative this behavior. But I like the IDE. I like it a lot. Please add this fundamental feature to the compiler.
Please, please, PLEASE add this!
Trying to work with PureBasic from the command line is excruciatingly difficult. I already can't split files away from my projects as reusable code because IncludeFile/XIncludeFile is so difficult to work with. I want "one" variant of a particular library on my system which all projects tap into instead of having to copy it into every project.
Relative paths and /INCLUDE is a beautiful solution. When working with C/C++, compiling on -any- system is a complete no brainer. All of my libraries and compilers are stored in a very logical directory structure and commanded by a custom build system that allows me to compile anywhere and everywhere by running one shell file to automatically configure my environment.
For command line compiler's sake, please add these features. I want to compile my entire project from one shell script and not have to worry about whether my relative path hack is going to freak out because the path is too deep or whether I remembered to update my project's libraries with the latest revision.
I am THIS close *makes a suggestively small space between thumb and index finger* to completely abandoning the IDE and hacking together my own completely incompatible compile-time parser to splice out includes on the fly to imitative this behavior. But I like the IDE. I like it a lot. Please add this fundamental feature to the compiler.
Please, please, PLEASE add this!