* dlltool problem
@ 1998-07-21 12:23 Michal Kouril
1998-07-22 13:57 ` Berend Ozceri
0 siblings, 1 reply; 2+ messages in thread
From: Michal Kouril @ 1998-07-21 12:23 UTC (permalink / raw)
To: gnu-win32
[-- Attachment #1: Type: text/plain, Size: 808 bytes --]
Hey,
look at this:
bash.exe-2.01$ make
gcc -c my.c
gcc -c dll_init.c
ld -s --base-file my.base --dll -o my.dll my.o dll_init.o -lcygwin
-lkernel32 -e _dll_entry@12
dlltool --as=as --dllname my.dll --def my.def --base-file my.base
--output-exp test/my.exp
dlltool: Unable to open output file ttest/my.exp
^!!!
make: *** [my.dll] Error 1
bash.exe-2.01$
It always put one "t" letter when I supply directory in --output-exp
parameter.
I have latest cdk.exe installed with latest cygwinb19.dll (ver 19.1).
mk
dll_init.c
all: my.dll
%.o: %.c
gcc -c $*.c
my.dll: my.o dll_init.o
ld -s --base-file my.base --dll -o my.dll my.o dll_init.o -lcygwin -lkernel32 -e _dll_entry@12
dlltool --as=as --dllname my.dll --def my.def --base-file my.base --output-exp test/my.exp
[-- Attachment #2: dll_init.c --]
[-- Type: text/x-c, Size: 309 bytes --]
#include <stdio.h>
#include <windows.h>
#include <unistd.h>
void cygwin_crt0 (void *f);
__attribute__((stdcall))
int dll_entry(int handle, int reason, void *ptr)
{
switch(reason) {
case DLL_PROCESS_ATTACH:
cygwin_crt0(NULL);
break;
case DLL_PROCESS_DETACH:
break;
}
return 1;
}
[-- Attachment #3: my.c --]
[-- Type: text/x-c, Size: 68 bytes --]
#include <stdio.h>
void test(int i) {
printf("test %d", i);
}
[-- Attachment #4: my.def --]
[-- Type: text/plain, Size: 13 bytes --]
EXPORTS
test
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: dlltool problem
1998-07-21 12:23 dlltool problem Michal Kouril
@ 1998-07-22 13:57 ` Berend Ozceri
0 siblings, 0 replies; 2+ messages in thread
From: Berend Ozceri @ 1998-07-22 13:57 UTC (permalink / raw)
To: gnu-win32
Excerpts from gnu-win32: 21-Jul-98 dlltool problem by Michal Kouril
>It always put one "t" letter when I supply directory in --output-exp
>parameter.
Yes. At best this can be called a bad feature. It prepends the "t" in front of
the --output-exp argument to create it as a temporary file. It gets moved
later. However, that scheme completely fails if the argument contains a path
component as well as a filename.
Berend
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-07-22 13:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-07-21 12:23 dlltool problem Michal Kouril
1998-07-22 13:57 ` Berend Ozceri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).