This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problems with DLL's


 I'm trying to create a simple dll, but i'm having problems.
 First i have created a file with a simple code:

dll.c

#include <windows.h>

int WINAPI 
dll_init(HANDEL h, DWORD reason, void *foo)
{
	return 1;
}

main()
{}


 Second, 
	gcc -c dll.c

 Third,
	gcc -s -Wl,--base-file,dll.base -o dll.dll dll.o 
-Wl,-e,_dll_init@12

 ok! But in th fourth step:
	dlltool --base-file dll.base --def dll.def --output-exp
dll.exp --dllname dll.dll

/cygdrive/c/PROGRA~1/CYGWIN/BIN/DLLTOOL: Can't open def file: libga.def

 Do i have to create libga.def my self? If so how? What's the content?

 One more thing do i have to create include a main? I've tryed with out
it, but failed. It tould me that "...no rerefence to WinMain@16...".

	Thanks for the help!



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]