Page 1 of 2
Multithreated
Posted: Tue May 31, 2005 7:52 pm
by Polo
Hi !
I've got a c++ code that use multithreated version of the C runtime... I need to make it so it will use singlethreated runtimes, is it possible ?
Thx !
Gaetan
Posted: Tue May 31, 2005 8:01 pm
by KarLKoX
Wich compiler ?
With VC++ (6.0) it is very easy : alt F7 ---> C/C++ tab --> Code generation "category" ---> change the "Use runtime" combobox selection.
Posted: Tue May 31, 2005 8:03 pm
by Polo
Yeah, I know, I'm using VC6, but that's not the way I wanna fix it : I'm creating a .lib file, so changing this as no affect (it's for using with Pure)
In fact, I need to put a multithreated version of the c runtime in the desc file to have the .lib working, if i just put a singlethreated i get some linking errors...
Posted: Tue May 31, 2005 8:05 pm
by KarLKoX
I get working multithreaded lib AND singledthreaded lib without errors, wich ones do you have ?
Posted: Tue May 31, 2005 8:14 pm
by Polo
KarLKoX wrote:I get working multithreaded lib AND singledthreaded lib without errors, wich ones do you have ?
Well, this is what I get when i'm using libc.lib :
POLINK: error: Unresolved external symbol "_main"
POLINK: error: Unresolved external symbol "_imp_GetEnvironmentStringW"
POLINK: error: Unresolved external symbol "_imp_FreeEnvironmentStringW"
POLINK: error: Unresolved external symbol "_imp_LCMapStringW"
POLINK: error: Unresolved external symbol "_imp_GetStringTypeW"
When using crtdll.lib
POLINK: error: Unresolved external symbol "__EH_prolog"
POLINK: error: Unresolved external symbol "__except list"
POLINK: error: Unresolved external symbol "___CxxFrameHandler"

Posted: Tue May 31, 2005 8:19 pm
by KarLKoX
Try with msvcrt.lib

Posted: Tue May 31, 2005 8:21 pm
by Polo
KarLKoX wrote:Try with msvcrt.lib

It is multithreated

If I use it it will be in conflict with the image decoder

(try using UseJPEGDecoder() with a library calling msvcrt

)
Posted: Tue May 31, 2005 8:31 pm
by KarLKoX
uh ??
I never got errors using my own lib using multithreading and the one used by purebasic.
Posted: Tue May 31, 2005 8:43 pm
by Polo
I found a way to use crtdll without getting linking error : disable exception handling.
For using libc, i haven't found a workaround yet...
Posted: Tue May 31, 2005 8:47 pm
by KarLKoX
I ve just think about it : try now with crtmt.lib.
Posted: Tue May 31, 2005 8:57 pm
by Polo
KarLKoX wrote:I ve just think about it : try now with crtmt.lib.
This is multithreated and incompatible with Image decoders....
Anyway using the dll will be fine, as everybody has it

Posted: Tue May 31, 2005 9:32 pm
by KarLKoX
okidoki

Posted: Wed Jun 01, 2005 5:04 pm
by dell_jockey
KarLKoX wrote:"Qui baise trop bouffe un poil."
ca veut dire quoi en Anglais?
salut
Posted: Wed Jun 01, 2005 5:10 pm
by Polo
dell_jockey wrote:KarLKoX wrote:"Qui baise trop bouffe un poil."
ca veut dire quoi en Anglais?
salut
Well...
I guess It's not a good idea to translate it

Posted: Wed Jun 01, 2005 5:12 pm
by dell_jockey
something about 'kissing too much...', but I don't get the point.....
