Hi all,
I encountered a problem on compiling my sources on Windows. I use functions of Glew from ‘glew.h’ which compiles on Mac fine but fails on Windows with that message from the linker:
$ make
CPU architecture is: x86_64
g++ -o plugin.dll build/src/LRModule.cpp.o (...) -l:libRack.a -shared -L../.. -lRack
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: build/src/widgets/LRBufferedSvg.cpp.o: in function `lrt::LRBufferedSvg::createFbo()':
C:\msys64\home\ReinaME\Rack\plugins\LRTRack/src/widgets/LRBufferedSvg.cpp:61: undefined reference to `glViewport'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ReinaME\Rack\plugins\LRTRack/src/widgets/LRBufferedSvg.cpp:62: undefined reference to `glClearColor'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\msys64\home\ReinaME\Rack\plugins\LRTRack/src/widgets/LRBufferedSvg.cpp:63: undefined reference to `glClear'
collect2.exe: error: ld returned 1 exit status
make: *** [../../compile.mk:59: plugin.dll] Error 1
I have absolutely no glue… any ideas from the expert C++ hackers?
Thanks in advance, Patrick