Hardcoded PureBasic.dll
- mariosk8s
- Enthusiast
- Posts: 103
- Joined: Wed Apr 06, 2011 11:37 am
- Location: Hüfingen, Germany
- Contact:
Hardcoded PureBasic.dll
Is there a reason that DLLs must be named PureBasic.dll on Windows?
In the past i simply renamed it afterwards, but now i'm actually trying to link to it and the linker insists on linking to PureBasic.dll.
In the past i simply renamed it afterwards, but now i'm actually trying to link to it and the linker insists on linking to PureBasic.dll.
- NicTheQuick
- Addict
- Posts: 1226
- Joined: Sun Jun 22, 2003 7:43 pm
- Location: Germany, Saarbrücken
- Contact:
Re: Hardcoded PureBasic.dll
What PureBasic.dll do you mean? Where do you have to use it? Sounds more like you are creating it by yourself.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Re: Hardcoded PureBasic.dll
You need to gives the right name when creating the DLL, as the .lib associated to it will use it.
Re: Hardcoded PureBasic.dll
I think what Mario is saying that the /DLL switch on Windows does not have a Filename parameter:
https://www.purebasic.com/documentation ... piler.html
For Linux and Mac there is a Filename parameter. But not for Windows (just /DLL).
So the DLL is always named PureBasic.dll.
https://www.purebasic.com/documentation ... piler.html
For Linux and Mac there is a Filename parameter. But not for Windows (just /DLL).
So the DLL is always named PureBasic.dll.
-
- Addict
- Posts: 4527
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: Hardcoded PureBasic.dll
Sorry, I think that is a contradiction to what it reads on the page that you mentioned:Kukulkan wrote:I think what Mario is saying that the /DLL switch on Windows does not have a Filename parameter:
https://www.purebasic.com/documentation ... piler.html
For Linux and Mac there is a Filename parameter. But not for Windows (just /DLL).
So the DLL is always named PureBasic.dll.
https://www.purebasic.com/documentation/reference/cli_compiler.html wrote:Examples:
CLI> pbcompiler "C:\Project\Source\DLLSource.pb" /EXE "C:\Project\project.dll" /DLL
The compiler will compile the source code (here with full path) and create the DLL "project.dll" in the given directory.
Re: Hardcoded PureBasic.dll
Yes, you can use the /EXE flag to specify the output name. I agree it's badly named, it should be /OUTPUT parameter.
Re: Hardcoded PureBasic.dll
Is that an indication that it might be so, sometime in the future?Fred wrote:Yes, you can use the /EXE flag to specify the output name. I agree it's badly named, it should be /OUTPUT parameter.
DE AA EB
- mariosk8s
- Enthusiast
- Posts: 103
- Joined: Wed Apr 06, 2011 11:37 am
- Location: Hüfingen, Germany
- Contact:
Re: Hardcoded PureBasic.dll
Great, that works for me to know that now.Fred wrote:Yes, you can use the /EXE flag to specify the output name. I agree it's badly named, it should be /OUTPUT parameter.
I think changing
Code: Select all
/DLL: Create a DLL
Code: Select all
/DLL "Filename": Create a DLL with the given file name.
- mariosk8s
- Enthusiast
- Posts: 103
- Joined: Wed Apr 06, 2011 11:37 am
- Location: Hüfingen, Germany
- Contact:
Re: Hardcoded PureBasic.dll
Cool, to know about that page. So far i only knew aboutLittle John wrote:Sorry, I think that is a contradiction to what it reads on the page that you mentioned:https://www.purebasic.com/documentation/reference/cli_compiler.html wrote:Examples:
CLI> pbcompiler "C:\Project\Source\DLLSource.pb" /EXE "C:\Project\project.dll" /DLL
The compiler will compile the source code (here with full path) and create the DLL "project.dll" in the given directory.
Code: Select all
pbcompiler /?
- Andre
- PureBasic Team
- Posts: 2058
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Re: Hardcoded PureBasic.dll
To be clarified by Fred => official supported behaviour => related notes in the docs...
Re: Hardcoded PureBasic.dll
I agree than /DLL should have a filename parameter as well.
- Andre
- PureBasic Team
- Posts: 2058
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Re: Hardcoded PureBasic.dll
Suggestion for the 'Command line compiler' (cli_compiler.txt) at 'Windows-specific command line parameters':
/DLL "Filename.dll" - the output file will be a DLL (if there is no filename given, the output file will be named "PureBasic.dll")