Everything else that doesn't fall into one of the other PB categories.
Polo
Addict
Posts: 2422 Joined: Tue May 06, 2003 5:07 pm
Location: UK
Post
by Polo » Tue May 31, 2005 7:52 pm
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
KarLKoX
Enthusiast
Posts: 681 Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:
Post
by KarLKoX » Tue May 31, 2005 8:01 pm
Wich compiler ?
With VC++ (6.0) it is very easy : alt F7 ---> C/C++ tab --> Code generation "category" ---> change the "Use runtime" combobox selection.
Polo
Addict
Posts: 2422 Joined: Tue May 06, 2003 5:07 pm
Location: UK
Post
by Polo » Tue May 31, 2005 8:03 pm
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...
KarLKoX
Enthusiast
Posts: 681 Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:
Post
by KarLKoX » Tue May 31, 2005 8:05 pm
I get working multithreaded lib AND singledthreaded lib without errors, wich ones do you have ?
Polo
Addict
Posts: 2422 Joined: Tue May 06, 2003 5:07 pm
Location: UK
Post
by Polo » Tue May 31, 2005 8:14 pm
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"
KarLKoX
Enthusiast
Posts: 681 Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:
Post
by KarLKoX » Tue May 31, 2005 8:19 pm
Try with msvcrt.lib
Polo
Addict
Posts: 2422 Joined: Tue May 06, 2003 5:07 pm
Location: UK
Post
by Polo » Tue May 31, 2005 8:21 pm
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
)
KarLKoX
Enthusiast
Posts: 681 Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:
Post
by KarLKoX » Tue May 31, 2005 8:31 pm
uh ??
I never got errors using my own lib using multithreading and the one used by purebasic.
Polo
Addict
Posts: 2422 Joined: Tue May 06, 2003 5:07 pm
Location: UK
Post
by Polo » Tue May 31, 2005 8:43 pm
I found a way to use crtdll without getting linking error : disable exception handling.
For using libc, i haven't found a workaround yet...
KarLKoX
Enthusiast
Posts: 681 Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:
Post
by KarLKoX » Tue May 31, 2005 8:47 pm
I ve just think about it : try now with crtmt.lib.
Polo
Addict
Posts: 2422 Joined: Tue May 06, 2003 5:07 pm
Location: UK
Post
by Polo » Tue May 31, 2005 8:57 pm
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
KarLKoX
Enthusiast
Posts: 681 Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:
Post
by KarLKoX » Tue May 31, 2005 9:32 pm
okidoki
dell_jockey
Enthusiast
Posts: 767 Joined: Sat Jan 24, 2004 6:56 pm
Post
by dell_jockey » Wed Jun 01, 2005 5:04 pm
KarLKoX wrote: "Qui baise trop bouffe un poil."
ca veut dire quoi en Anglais?
salut
Polo
Addict
Posts: 2422 Joined: Tue May 06, 2003 5:07 pm
Location: UK
Post
by Polo » Wed Jun 01, 2005 5:10 pm
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
dell_jockey
Enthusiast
Posts: 767 Joined: Sat Jan 24, 2004 6:56 pm
Post
by dell_jockey » Wed Jun 01, 2005 5:12 pm
something about 'kissing too much...', but I don't get the point.....