It is currently Tue Oct 15, 2019 5:20 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Hardcoded PureBasic.dll
PostPosted: Mon Feb 04, 2019 10:35 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Apr 06, 2011 11:37 am
Posts: 103
Location: Hüfingen, Germany
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.
:cry:


Top
 Profile  
Reply with quote  
 Post subject: Re: Hardcoded PureBasic.dll
PostPosted: Mon Feb 04, 2019 11:12 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 22, 2003 7:43 pm
Posts: 446
Location: Germany, Saarbrücken
What PureBasic.dll do you mean? Where do you have to use it? Sounds more like you are creating it by yourself.

_________________
Electronics, Crazy & Interesting Stuff, all that with text, image and sound? Click here!

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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Hardcoded PureBasic.dll
PostPosted: Mon Feb 04, 2019 12:58 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13622
Location: France
You need to gives the right name when creating the DLL, as the .lib associated to it will use it.


Top
 Profile  
Reply with quote  
 Post subject: Re: Hardcoded PureBasic.dll
PostPosted: Mon Feb 04, 2019 3:55 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 1212
Location: germany
I think what Mario is saying that the /DLL switch on Windows does not have a Filename parameter:

https://www.purebasic.com/documentation/reference/cli_compiler.html

For Linux and Mac there is a Filename parameter. But not for Windows (just /DLL).

So the DLL is always named PureBasic.dll.


Top
 Profile  
Reply with quote  
 Post subject: Re: Hardcoded PureBasic.dll
PostPosted: Mon Feb 04, 2019 4:13 pm 
Online
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3674
Location: Berlin, Germany
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/reference/cli_compiler.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:
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.

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
Reply with quote  
 Post subject: Re: Hardcoded PureBasic.dll
PostPosted: Mon Feb 04, 2019 4:27 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13622
Location: France
Yes, you can use the /EXE flag to specify the output name. I agree it's badly named, it should be /OUTPUT parameter.


Top
 Profile  
Reply with quote  
 Post subject: Re: Hardcoded PureBasic.dll
PostPosted: Mon Feb 04, 2019 5:13 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1679
Location: Uttoxeter, UK
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Hardcoded PureBasic.dll
PostPosted: Tue Feb 05, 2019 10:17 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Apr 06, 2011 11:37 am
Posts: 103
Location: Hüfingen, Germany
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
Code:
/DLL: Create a DLL

to
Code:
/DLL "Filename": Create a DLL with the given file name.

would be the easiest to grasp in my mind.


Top
 Profile  
Reply with quote  
 Post subject: Re: Hardcoded PureBasic.dll
PostPosted: Tue Feb 05, 2019 10:21 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Apr 06, 2011 11:37 am
Posts: 103
Location: Hüfingen, Germany
Little 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.

Cool, to know about that page. :idea: So far i only knew about
Code:
pbcompiler /?
and it didn't mention that, nor the page you're referring to.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye