We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4008 - SDL_main() gets exported while executables dont have exports
Summary: SDL_main() gets exported while executables dont have exports
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: main (show other bugs)
Version: HG 2.0
Hardware: All Windows (All)
: P2 minor
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-22 16:02 UTC by amir ramezani
Modified: 2017-12-22 18:01 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description amir ramezani 2017-12-22 16:02:35 UTC
hi,
in visual studio 2015 when i import the libraries (the libraries which are available on the sdl's website), when i import sdl2main.lib, SDL_main() gets exported which shouldn't (my game is an executable, not a dll).
as a result, a .lib and .exp file is made beside the executable.
i think SDL_Main() is declared as DLLEXPORT
although i declare my SDL_main as follows:
int SDL_main(int argc, char** argv)
but, it is exported
note that i've tested this on vs2015 with windows 10 64 bit (the application is compiled for 32 bit with SSE support)
thanks
Comment 1 Sam Lantinga 2017-12-22 18:01:48 UTC
This is fixed in the latest snapshot:
http://www.libsdl.org/tmp/SDL-2.0.zip