Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create dll via make directly in MinGW #16

Open
suxpert opened this issue Aug 13, 2012 · 0 comments
Open

Cannot create dll via make directly in MinGW #16

suxpert opened this issue Aug 13, 2012 · 0 comments

Comments

@suxpert
Copy link

suxpert commented Aug 13, 2012

I've searching from the Internet for hours only to find that MinGW need a special treatment when compiling a dll file. That is, ld need a special parameter when creating dll file, if without it, we'll get this message instead of a dll file when linking:

libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 shared libraries

To solve this problem, we need to pass the -no-defined argument to ld, this can be done via modifying the Makefile.am in src folder, or someone suggest to use the following command instead of a simple make:
make LDFLAGS=-no-undefined

@suxpert suxpert closed this as completed Aug 13, 2012
@suxpert suxpert reopened this Aug 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant