Polytonic / Glitter

Dead Simple OpenGL
http://polytonic.github.io/Glitter/
2.48k stars 418 forks source link

"Too many sections" error on windows mingw gcc #50

Closed ShivanshuKantPrasad closed 5 years ago

ShivanshuKantPrasad commented 5 years ago

I am trying to compile Glitter on windows using mingw gcc compiler. It gives "Too many sections" error.

Result of gcc --version: gcc.exe (x86_64-win32-seh-rev0, Built by MinGW-W64 project) 8.1.0

Polytonic commented 5 years ago

You might try the suggestions on StackOverflow for this?

I'm afraid I don't personally build using GCC under Windows environments. Let me know if the above compiler flags work for you.

ShivanshuKantPrasad commented 5 years ago

I don't know how cmake works. So i tried adding SET(GCC_COVERAGE_COMPILE_FLAGS "-Wa,-mbig-obj") to the end of cmake file like this but that didn't work. Can you explain how to add flags.

Polytonic commented 5 years ago

I don't know how cmake works.

You can add compiler flags under the appropriate section in CMakeLists.txt.

You might also find this StackOverflow post instructive: https://stackoverflow.com/questions/11783932/

Let me know if you're still encountering this issue.

Polytonic commented 5 years ago

Hi there -- just checking in to see if you've resolved this? If not, let me know, otherwise I'll close this ticket sometime tomorrow.

ShivanshuKantPrasad commented 5 years ago

I was not able to solve this issue, but i have moved to Linux so i don't care anymore.

Polytonic commented 5 years ago

Alrighty, then. I'm going to go ahead and close this for now. If you continue to experience issues, feel free to reopen or open a new ticket.