Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » How to configure for SDL2 project?
Re: How to configure for SDL2 project? [message #57064 is a reply to message #57062] Wed, 19 May 2021 11:40 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
flim wrote on Wed, 19 May 2021 06:01
I test the nightly build today, I create a new packagew with SDL in MyApp, the package build successfully.

But when I build this code, the linker failed. Any idea?

(): Linking has failed
(): lld-link: error: undefined symbol: SDL_main
(): >>> referenced by c:\projects\sdl\src\main\windows\sdl_windows_main.c:175
(): >>> SDL2main.lib(SDL_windows_main.obj):(main_getcmdline)
(): clang-11: error: linker command failed with exit code 1 (use -v to see invocation)


int main(void) {


int main(int, char **)


I think that might be it.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: my TCP client/server don't work correctly
Next Topic: Question about TcpSocket::Peek() / Get()
Goto Forum:
  


Current Time: Thu Jul 31 17:39:06 CEST 2025

Total time taken to generate the page: 0.13892 seconds