Got an idea for enhancing PureBasic? New command(s) you'd like to see?
mariosk8s
Enthusiast
Posts: 103 Joined: Wed Apr 06, 2011 11:37 am
Location: Hüfingen, Germany
Contact:
Post
by mariosk8s » Mon Feb 04, 2019 10:35 am
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.
NicTheQuick
Addict
Posts: 1504 Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:
Post
by NicTheQuick » Mon Feb 04, 2019 11:12 am
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.
Fred
Administrator
Posts: 18162 Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:
Post
by Fred » Mon Feb 04, 2019 12:58 pm
You need to gives the right name when creating the DLL, as the .lib associated to it will use it.
Kukulkan
Addict
Posts: 1396 Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:
Post
by Kukulkan » Mon Feb 04, 2019 3:55 pm
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.
Little John
Addict
Posts: 4779 Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany
Post
by Little John » Mon Feb 04, 2019 4:13 pm
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.
Sorry, I think that is a contradiction to what it reads on the page that you mentioned:
Fred
Administrator
Posts: 18162 Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:
Post
by Fred » Mon Feb 04, 2019 4:27 pm
Yes, you can use the /EXE flag to specify the output name. I agree it's badly named, it should be /OUTPUT parameter.
davido
Addict
Posts: 1890 Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK
Post
by davido » Mon Feb 04, 2019 5:13 pm
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.
Is that an indication that it might be so, sometime in the future?
DE AA EB
mariosk8s
Enthusiast
Posts: 103 Joined: Wed Apr 06, 2011 11:37 am
Location: Hüfingen, Germany
Contact:
Post
by mariosk8s » Tue Feb 05, 2019 10:17 am
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.
Great, that works for me to know that now.
I think changing
to
Code: Select all
/DLL "Filename": Create a DLL with the given file name.
would be the easiest to grasp in my mind.
mariosk8s
Enthusiast
Posts: 103 Joined: Wed Apr 06, 2011 11:37 am
Location: Hüfingen, Germany
Contact:
Post
by mariosk8s » Tue Feb 05, 2019 10:21 am
Little John wrote: Sorry, I think that is a contradiction to what it reads on the page that you mentioned:
Cool, to know about that page.
So far i only knew about
and it didn't mention that, nor the page you're referring to.
Andre
PureBasic Team
Posts: 2137 Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:
Post
by Andre » Wed Mar 04, 2020 11:57 pm
To be clarified by Fred => official supported behaviour => related notes in the docs...
Fred
Administrator
Posts: 18162 Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:
Post
by Fred » Thu Mar 05, 2020 9:56 am
I agree than /DLL should have a filename parameter as well.
Andre
PureBasic Team
Posts: 2137 Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:
Post
by Andre » Sat Sep 16, 2023 9:02 pm
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")