Page 1 of 1

subsystem question...

Posted: Thu Nov 29, 2007 10:41 am
by lexvictory
i have no idea how they work....
i know that u have to create a directory in the subsystems folder, then a purelibraries one... (userlibraries too?)

is there any common naming scheme for Unicode, Threadsafe and Unicode+Threadsafe?

and for those 3, do i have to manually add their name to the compiler options when i compile a program in one of those modes? (using pb editor)

Re: subsystem question...

Posted: Thu Nov 29, 2007 11:52 am
by gnozal
lexvictory wrote:userlibraries too?
Not necessarily (it was broken anyway in PB4.00/PB4.01).
lexvictory wrote:is there any common naming scheme for Unicode, Threadsafe and Unicode+Threadsafe?
Most of the userlibrary programmers use this scheme :
- standard library version in %Purebasic%\PureLibraries\UserLibraries\
- thread-safe library version in %Purebasic%\SubSystems\UserLibThreadSafe\PureLibraries\
- unicode library version in %Purebasic%\SubSystems\UserLibUnicode\PureLibraries\
- unicode + thread-safe library version in %Purebasic%\SubSystems\UserLibUnicodeThreadSafe\PureLibraries\
lexvictory wrote:and for those 3, do i have to manually add their name to the compiler options when i compile a program in one of those modes? (using pb editor)
Yes if you use the PB IDE.
For example, if you compile in unicode mode, add the subsystem 'UserLibUnicode' to the compiler options.