Sometimes I don't sleep!Olli wrote: Mon Sep 25, 2023 10:36 pm@idle, when I read you so often, in a so short period, that indicates to me, it is the hour for me to sleep.
Link .lib only without the dll?
Re: Link .lib only without the dll?
Re: Link .lib only without the dll?
Hmm, the problem seems to be , that pbcompilerc does not like the code with "?" strings , while asm compiles with no issues:
when compiling with C backend (mandatory for Chi tool and swapping msvcrt) - a line generated by PB like this to cover the prototype from external lib:
will produce that:
It does not matter if the lib is just a declaration or not - AMS compiler is ok, pbcompilerc is not. It does not matter if the msvcrt.lib is PB original or not.
running Beta 9
Edit:
What is the exact build in msvcrt version delivered with PureBasic? It may be much simpler - I can compile and run the static lib for any msvcrt from WindowsXP/Vista to 2022 - code has switches for that.
when compiling with C backend (mandatory for Chi tool and swapping msvcrt) - a line generated by PB like this to cover the prototype from external lib:
Code: Select all
integer f_xtpskinmanager() asm("?XTPSkinManager@@YAPEAVCXTPSkinManager@@XZ");Code: Select all
C:\TMP\cckKM7lk.s: Assembler messages:
C:\TMP\cckKM7lk.s:621: Error: invalid character '?' before operand 1running Beta 9
Edit:
What is the exact build in msvcrt version delivered with PureBasic? It may be much simpler - I can compile and run the static lib for any msvcrt from WindowsXP/Vista to 2022 - code has switches for that.
S.T.V.B.E.E.V.
Re: Link .lib only without the dll?
Code: Select all
integer f_xtpskinmanager() asm("?XTPSkinManager@@YAPEAVCXTPSkinManager@@XZ");2) why no templates between parenthesis '()' and more perhaps...
example :
Code: Select all
class CXTPSkinManager * __ptr64 __cdecl XTPSkinManager(void);Re: Link .lib only without the dll?
Olli
Good question, maybe
I was quoting C code generated by PureBasic C Compiler with -c .
So blame PureBasic c comp[iler for how the calls to an external lib are made.
In any case this does not produce any exe output, even with dynamic linking.
Good question, maybe
I was quoting C code generated by PureBasic C Compiler with -c .
So blame PureBasic c comp[iler for how the calls to an external lib are made.
In any case this does not produce any exe output, even with dynamic linking.
S.T.V.B.E.E.V.
Re: Link .lib only without the dll?
And repeat:
What is the exact build in msvcrt version delivered with PureBasic?
What is the exact build in msvcrt version delivered with PureBasic?
S.T.V.B.E.E.V.
Re: Link .lib only without the dll?
I do not like the static libs, so I blame none. Let us wait Idle awaking...
Re: Link .lib only without the dll?
It's 2.15 am this was the closest light..
Re: Link .lib only without the dll?
It was Idle... A doubt about an external static library, and the result: a concussion in the middle of his sleep.
I pray you all, never do that with me. Never kill me with a question about a Microsoft file in the middle of one of my nights. Please.
I pray you all, never do that with me. Never kill me with a question about a Microsoft file in the middle of one of my nights. Please.
Msvcrt.DLL is already in your Microsoft system before you install PureBasic.pamen wrote:What is the exact build in msvcrt version delivered with PureBasic?
Re: Link .lib only without the dll?
I wish Idle sleeps well.
Olli, if you are awake in far away France - I'm asking about PureBasic msvcrt.lib - what msvcrt is this lib based on (Chi ib versions crash the pb compiler for me), not all the MSVCRT.DLL on my system - I do have all, from XP to VS 2022.
Olli, if you are awake in far away France - I'm asking about PureBasic msvcrt.lib - what msvcrt is this lib based on (Chi ib versions crash the pb compiler for me), not all the MSVCRT.DLL on my system - I do have all, from XP to VS 2022.
S.T.V.B.E.E.V.
Re: Link .lib only without the dll?
You puzzle me... Never need this...
Re: Link .lib only without the dll?
PureBasic 5.50 x64 for Windows (Microsoft)
290 774 bytes
November 24th, 2015 14:57
PureBasic 6.00 x64 for Windows (Microsoft)
290 774 bytes
Juny 28, 2022 17:47:18
Do you want a hash ?
290 774 bytes
November 24th, 2015 14:57
PureBasic 6.00 x64 for Windows (Microsoft)
290 774 bytes
Juny 28, 2022 17:47:18
Do you want a hash ?
Re: Link .lib only without the dll?
no, msvcrt.lib is from 24 November 2015, 13:57:48 - I need a version of VS, not the date, but thanks, I will just use dumbin to find out which VS it is from.
S.T.V.B.E.E.V.
Re: Link .lib only without the dll?
Looks like the same issue
viewtopic.php?t=82528
viewtopic.php?t=82528


