cannot find -lcl
-
- Posts: 4307
- Joined: Jan 02, 2017 0:34
- Location: UK
- Contact:
Re: cannot find -lcl
I took a chance and installed FB 0.18.2b into a folder called Bollocks on my external hard drive and took out dlltool.exe dated Dec 1 2005.
gendef cl32.dll => cl32.def
but
dlltool -d cl32.def -k -l libcl.dll.a => gave a 0 byte file.
gendef cl32.dll => cl32.def
but
dlltool -d cl32.def -k -l libcl.dll.a => gave a 0 byte file.
Re: cannot find -lcl
hello deltarho[1859]
there's quirk in dlltool it expects as.exe to be in the PATH, but you should already have as.exe and dlltool in the FreeBasic\bin\win32(64) folder, you would need to set the PATH to that directory
there's quirk in dlltool it expects as.exe to be in the PATH, but you should already have as.exe and dlltool in the FreeBasic\bin\win32(64) folder, you would need to set the PATH to that directory
Code: Select all
set PATH=path_to_freebasic\bin\win32 (or 64) folder
-
- Posts: 4307
- Joined: Jan 02, 2017 0:34
- Location: UK
- Contact:
Re: cannot find -lcl
Still getting a zero byte file.
Re: cannot find -lcl
I tested it on my system to make sure that it would work, don't know why you are still having problems.
-
- Posts: 4307
- Joined: Jan 02, 2017 0:34
- Location: UK
- Contact:
Re: cannot find -lcl
Neither do I. Reverted to current dlltool.
-
- Posts: 4307
- Joined: Jan 02, 2017 0:34
- Location: UK
- Contact:
Re: cannot find -lcl
Worked from command prompt. The failure is with my 'Run with swiches'. S**T! I have been using that for ages. I will have to dust out my drawing board.
Thanks for your patience, srvaldez - do you have any to spare?
Thanks for your patience, srvaldez - do you have any to spare?
Re: cannot find -lcl
no problem, I was dumbfounded as to why it would not work for you. :-)
-
- Posts: 4307
- Joined: Jan 02, 2017 0:34
- Location: UK
- Contact:
Re: cannot find -lcl
Thanks
I am using the PowerBASIC version of 'Run with switches'. Checked my records: Wrote it in Dec 2008 and it hasn't put a foot wrong since. I bet it is flaming Windows. I must get it working - I hate using the command prompt.
I am using the PowerBASIC version of 'Run with switches'. Checked my records: Wrote it in Dec 2008 and it hasn't put a foot wrong since. I bet it is flaming Windows. I must get it working - I hate using the command prompt.
-
- Posts: 4307
- Joined: Jan 02, 2017 0:34
- Location: UK
- Contact:
Re: cannot find -lcl
With libcl.dll.a I am now getting
undefined reference to `cryptInit@0'
undefined reference to `cryptEnd@0'
I thought the dlltool -k parameter was supposed to kil the 'at'.
I am flogging a dead horse because I have concluded that I have no intention of using cryptlib. Having spent a little time looking at the cryptlib manual the jumping through loops doesn't seem to stop at getting a library to work. For cryptographic work I will use the Windows APIs. They are not the easiest of reads but there are no problems beyond that and no endless jumping through hoops and very few quirks. It seems to me that as with many 'Jack of all trade' solutions they are very often masters of none. My system has been restored to what it was before I stated this thread. <smile>
undefined reference to `cryptInit@0'
undefined reference to `cryptEnd@0'
I thought the dlltool -k parameter was supposed to kil the 'at'.
I am flogging a dead horse because I have concluded that I have no intention of using cryptlib. Having spent a little time looking at the cryptlib manual the jumping through loops doesn't seem to stop at getting a library to work. For cryptographic work I will use the Windows APIs. They are not the easiest of reads but there are no problems beyond that and no endless jumping through hoops and very few quirks. It seems to me that as with many 'Jack of all trade' solutions they are very often masters of none. My system has been restored to what it was before I stated this thread. <smile>
-
- Posts: 4307
- Joined: Jan 02, 2017 0:34
- Location: UK
- Contact:
Re: cannot find -lcl
@srvaldez
I have UAC at full throttle so I cannot delete or copy to the FreeBASIC installation without entering admin mode. I certainly cannot run dlltool from there as it wants to create a file. So, I copied dlltool to a folder outside of UAC control. The quirk of dlltool, if we can call it a quirk, is that it expects as.exe to be next to it ie in the same folder as itself. So, I put a copy of as.exe next to the copied dlltool. dlltool now works fine and I did not have to mess around with PATH.
So, my 9 year old 'Run with switches' idea still hasn't put a foot wrong. Putting an exe's command tail into an input box is a hell of a lot easier then opening a command prompt, changing the directory, which could be deeply nested, and then typing the exe and parameters. Seeing it still working was a result in itself. What a relief. <smile>
My apparent failing of 'Run with switches' was bugging me big time. I checked out the PB version and could not find anything wrong with it. I then replaced it with the FB version and still got a zero byte file.there's quirk in dlltool it expects as.exe to be in the PATH, but you should already have as.exe and dlltool in the FreeBasic\bin\win32(64) folder, you would need to set the PATH to that directory
set PATH=path_to_freebasic\bin\win32 (or 64) folder
I have UAC at full throttle so I cannot delete or copy to the FreeBASIC installation without entering admin mode. I certainly cannot run dlltool from there as it wants to create a file. So, I copied dlltool to a folder outside of UAC control. The quirk of dlltool, if we can call it a quirk, is that it expects as.exe to be next to it ie in the same folder as itself. So, I put a copy of as.exe next to the copied dlltool. dlltool now works fine and I did not have to mess around with PATH.
So, my 9 year old 'Run with switches' idea still hasn't put a foot wrong. Putting an exe's command tail into an input box is a hell of a lot easier then opening a command prompt, changing the directory, which could be deeply nested, and then typing the exe and parameters. Seeing it still working was a result in itself. What a relief. <smile>
-
- Posts: 4307
- Joined: Jan 02, 2017 0:34
- Location: UK
- Contact:
Re: cannot find -lcl
Just to round this thread off.
undefined reference to `cryptInit@0'
undefined reference to `cryptEnd@0'
In cl32.def all the exports had @<n> except cryptInit and cryptEnd which obviously have no parameters. gendef should have added @0 but didn't so I did.
No undefined references now and two hash values were printed as required.
I am still not going to use cryptlib but leaving with a loose end was starting to bother me. Now I can walk away in peace all be in pieces. <laugh>
undefined reference to `cryptInit@0'
undefined reference to `cryptEnd@0'
In cl32.def all the exports had @<n> except cryptInit and cryptEnd which obviously have no parameters. gendef should have added @0 but didn't so I did.
No undefined references now and two hash values were printed as required.
I am still not going to use cryptlib but leaving with a loose end was starting to bother me. Now I can walk away in peace all be in pieces. <laugh>
-
- Posts: 4307
- Joined: Jan 02, 2017 0:34
- Location: UK
- Contact:
Re: cannot find -lcl
.... and to round it off even further.Yours truly wrote:Just to round this thread off.
srvaldez and I put a bit of time into this thread. In an ideal world we should not have had to do anything. I must confess that I get very wound up having to jump through hoops to get things to work and it doesn't help when tools we have to use to get things working sometimes leave a bit to be desired.
To lesson the grief for others attached is a zipped folder, called CryptlibBits, within which are two folders, namely 32 and 64. In 32 we have the 32 bit binaries libcl.dll.a and cl32.dll. In 64 we have the 64 bit binaries libcl.dll.a and cl64.dll.
In both 32 and 64 we have FBHash.bas. The 32 version is from the FB wiki and I have added a SHA2 determination. In 64, FBHash is slightly different. Compilation failed unless the statement
Code: Select all
Dim As Integer buffersize = BUFFER_SIZE
Code: Select all
Dim As Ulong buffersize = BUFFER_SIZE
cl32.dll and cl64.dll need to be next to your bas files.
CryptlibBits.zip 1.3MB