export

Previous topic - Next topic

Hemlos

Ok im working on testing the export ability again..

1. The wrapper looks great gernot, very nice looking.

2. I switched to win32-dll, but the file.dll doesnt appear to be visible after compiling(only the gbas is built), what did i do wrong?
Bing ChatGpt is pretty smart :O

MrTAToad

I'm finding that with

Code (glbasic) Select
FUNCTION AddFloat#: var1#, var2#
  RETURN var1+var2
ENDFUNCTION


EXPORT AddFloat#


I'm getting :

Warning: unresolved EXPORT: AddFloat#
Warning: unresolved EXPORT: AddFloat#
Wordcount:1 commands
Warning: unresolved EXPORT: AddFloat#

or

gpc_temp1.o:gpc_temp1.cpp:(.text+0x20): multiple definition of `_AddFloat'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xf0): first defined here

depending on whether the # symbol is removed off the function and EXPORT command

It's also creating an exe file, and not DLL...

Hemlos

A.
Confirmed, a # in the function name causes an error.

B.
With your issue for the multi count error....
1. clear your temp dir.
2. put all your exporting functions in a separate file.function.gbas, for the functions exported.
3. go through, and make sure, you are only calling these functions once.

multi-count, I had this problem when i tried to export 40 functions, i accidently had 2 identical calls.

C.
for me, i dont see any dll, no matter what i do..it doesnt seem to be building anything except the wrapper.gbas



Bing ChatGpt is pretty smart :O

Kitty Hello

The dll should be in the .app directory. It works for me.

Hemlos

Heres a screenshot, options are all correct, nothing is hidden, program is compiled.
dll not present

[attachment deleted by admin]
Bing ChatGpt is pretty smart :O

MrTAToad

#5
One thing that will be worth trying is an uninstall & re-install...

No, that didn't solve it either...  However, this code was stopping it compiling :

Code (glbasic) Select
FUNCTION foo:
ENDFUNCTION


INLINE
}
//extern "C" unsigned long GetUserDefaultUILanguage();
namespace __GLBASIC__ {
ENDINLINE


FUNCTION GetLangID%:
INLINE
//return GetUserDefaultUILanguage();
ENDINLINE
ENDFUNCTION


However, commenting everything out doesn't solve it - it appears that no source files are allowed with the WinDLL option, and the only way to get it to compile is to remove the source file.  However, whilst compiling & linking succeeded, there is no DLL

Hemlos

Here is a project, a simple one, where no dll is created....i rar the whole directory.



[attachment deleted by admin]
Bing ChatGpt is pretty smart :O

trucidare

Hi all,

check attachement, works for me



[attachment deleted by admin]
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

trucidare

No only the project, compile as DLL

i can Send the compiled project too if you want.
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

Hemlos

#9
The problem is NO DLL

The wrapper is working fine......there is no driver.dll file created.

test-dll.gbas is just a wrapper...its not the driver.

Download my attachment above, look inside, you will find the entire project, compiled ..
As you can see, a test-dll.gbas is created, but not test.dll
Bing ChatGpt is pretty smart :O

trucidare

come to chat, i?m online
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

Hemlos

ok ill brt
Bing ChatGpt is pretty smart :O

trucidare

#12
Compiled as DLL, hmm have you installed any instance of mingw oder cygwin?

EDIT:// Screenshot

[attachment deleted by admin]
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

Hemlos

#13
Quotemingw oder cygwin
This is a result of cygwin1.dll search in the harddrive, see untitled.JPG (below my sysinfo)


I saw a dll get compiled a few versions back in time, but not V7.085.
So something is wrong with the editorE.exe maybe?

system info:



EditorE.exe v7.085
GLBasic Precompiler V.7.038





[attachment deleted by admin]
Bing ChatGpt is pretty smart :O

MrTAToad

I dont have it installed...