Multithreated

Everything else that doesn't fall into one of the other PB categories.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Multithreated

Post 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
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post 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.
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post 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...
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

I get working multithreaded lib AND singledthreaded lib without errors, wich ones do you have ?
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post 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"
:)
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

Try with msvcrt.lib ;)
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post 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 :))
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

uh ??
I never got errors using my own lib using multithreading and the one used by purebasic.
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post 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...
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

I ve just think about it : try now with crtmt.lib.
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post 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 :)
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

okidoki :)
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

Post by dell_jockey »

KarLKoX wrote:"Qui baise trop bouffe un poil."
ca veut dire quoi en Anglais?

salut
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

dell_jockey wrote:
KarLKoX wrote:"Qui baise trop bouffe un poil."
ca veut dire quoi en Anglais?

salut
Well... :lol:
I guess It's not a good idea to translate it :)
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

Post by dell_jockey »

something about 'kissing too much...', but I don't get the point..... :cry:
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
Post Reply