emscripten-core / emscripten-core/emscripten

emcc compile fails on openGL's symbol glLoadMatrixf

Open
#13,545 4 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

I am trying to compile agar, a widgets/GUI library that also works through SDL. When compiling a helloworld as follows:
```bash
emcc -I/home/kabira/opensourceforgery/libagar/include/agar/ helloworld.c -L/home/kabira/o
pensourceforgery/libagar/lib -lag_core -lag_gui
```
I get the undef reference error:
```
error: undefined symbol: glLoadMatrixf (referenced by top-level compiled C/C++ code)
```
I tried using various flags regardng ES2 and SDL but that doesn't work. Not sure what libraries to link against.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.