Compiler : Options and parameters ...
Compiler : Options and parameters ...
I've heard that under VS2003+ a project is always linked to STL except if we use the compiler option /NODEFAULTLIB.
I'd like to know if PureBASIC Compiler have options, settings, parameters like /NODEFAULTLIB this one that can be used ?
does /NODEFAULTLIB can be used with PureBASIC compiler ?
I created this post because I have a problem with specific external links, not resolved that can be fixed under C++ by using /NODEFAULTLIB in the compilers options/parameters.
Regards,
Fred
I'd like to know if PureBASIC Compiler have options, settings, parameters like /NODEFAULTLIB this one that can be used ?
does /NODEFAULTLIB can be used with PureBASIC compiler ?
I created this post because I have a problem with specific external links, not resolved that can be fixed under C++ by using /NODEFAULTLIB in the compilers options/parameters.
Regards,
Fred
Last edited by freddix on Wed Oct 17, 2007 1:26 pm, edited 1 time in total.
That happens when you compile a source file to an object file and then link it without linking in the standard library. PureBasic can't compile to object files, so the problem simply isn't there.I created this post because I have a problem with specific external links, not resolved that can be fixed under C++ by using /NODEFAULTLIB in the compilers options/parameters.
Well, a subsystem is basically a subfolder of the SubSystems subfolder of your Purebasic installation and into which you can place libraries which take priority over libraries found elsewhere in the system.
For example, if you look in your SubSytems folder you will find an NT4 subfolder. In here there are various libraries; e.g. there is a joystick library. If in your application you set a compiler option to use this particular subsytem, then if your application makes use of the joystick library, Purebasic will use the library within this subsystem and not the usual library which resides in the Purelibraries folder of the PB installation.
Subsystems give you a means of having different versions of the same library in your PB installation and being able to choose which one you use etc.
Indeed, a lot of people (myself included) use the unicode and threadsafe subsystems in order to automatically use the correct versions of various user libaries etc.
For example, if you look in your SubSytems folder you will find an NT4 subfolder. In here there are various libraries; e.g. there is a joystick library. If in your application you set a compiler option to use this particular subsytem, then if your application makes use of the joystick library, Purebasic will use the library within this subsystem and not the usual library which resides in the Purelibraries folder of the PB installation.
Subsystems give you a means of having different versions of the same library in your PB installation and being able to choose which one you use etc.
Indeed, a lot of people (myself included) use the unicode and threadsafe subsystems in order to automatically use the correct versions of various user libaries etc.
I may look like a mule, but I'm not a complete ass.
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Iirc NODEFAULTLIB is a linker option.
You can set extra linker arguments in the project options [PB4.10 only : new compiler message LINKER]. Or you can use the /LINKER commandline switch.
You can set extra linker arguments in the project options [PB4.10 only : new compiler message LINKER]. Or you can use the /LINKER commandline switch.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
The linker should accept the option (I tested it with some other options) but it may not solve your specific problemfreddix wrote:so, I should simply add NODEFAULTLIB in the linker option and it should accept it?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Sorry, I did not check PB IDEfreddix wrote:@Gnozal : I didn't find project properties ... only compiler options and the linker is not in.

You have to use PBCompiler.exe from the command line then.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).