This is the mail archive of the
mailing list for the Cygwin project.
DLL and external symbols
- From: Jani Tiainen <jani dot tiainen at keypro dot fi>
- To: cygwin at cygwin dot com
- Date: Tue, 30 Dec 2003 23:35:47 +0200
- Subject: DLL and external symbols
I'm sure that this has been answered several times, but I'll ask again
because couldn't find any solution by myself.
I would like to build DLL (or any other sort of library) that refers to
external symbols in main application.
So far I have been able to build non-working constructs. =)
Let's say that I've two files:
extern void funcInMyLib(int);
void funcInMain(int i)
int main(int argc, char **argv)
and second file (library)
extern void funcInMain(int);
void funcInMyLib(int i)
funcInMain(i + 1);
Now how I can get this working, or is it possible at all?
With .DEF files I can get things compiled and linked, but even program
crashes at startup, or end up requesting "main.exp.dll".
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html