Comment #0 by andrej.mitrovich — 2011-12-30T17:04:13Z
See attachment. When the DLL is built the exported symbols are:
_foo1
foo2
foo3
AFAIK on Windows all exported C functions have an underscore prefix.
You can use DLL Export Viewer to see the symbols: http://www.nirsoft.net/utils/dllexp.zip
Comment #1 by andrej.mitrovich — 2011-12-30T17:04:44Z
Created attachment 1063
DLLExportBug
Comment #2 by r.sagitario — 2011-12-31T01:11:54Z
issue 3956 has slightly more info, so I'm closing this one as a duplicate
*** This issue has been marked as a duplicate of issue 3956 ***
Comment #3 by r.sagitario — 2011-12-31T01:13:55Z
Forgot to mention the workaround: list the symbols to export in the linker definition file.
Comment #4 by andrej.mitrovich — 2011-12-31T08:53:49Z
Thanks for the workaround. I find it amusing that we've used the exact same function names in the sample, lol. :p