Hi, I am trying to get SDL and GLEW to work on the windows port. I am
using windows 64 bit using the 6g compilers. I used mingw64 and msys
that I got from
http://sourceforge.net/projects/mingw-w64/files/latest/download?source=files
I compiled SDL from source for mingw and installed it to /usr/local/.
For GLEW i just copied the binary distribution into the top mingw
folder. I can compile a C SDL/GLEW application from mingw using
cc -o app app.c `sdl-config --cflags --libs` -lglew -I/usr/include -
lopengl32
and it seems to work.
but trying cgo on windows with this code
package main
// #cgo windows CFLAGS: -I/usr/local/include/SDL -D_GNU_SOURCE=1
// #cgo windows LDFLAGS: -lglew32 -lopengl32
// #include <SDL.h>
import "C"
func main() {
}
and i got SDL.h no such file or directory when i try to build. I am
not sure what flags I should pass to the CFLAGS, other than the
include which i gotten from sdl-config. I tried changed the /usr/
directory to /c/ming64/local/include and C:\ming64\local\include\ in
case it used that naming convention
Not sure how to get that to work. Any hints is appreciated, thanks.