c++ - GLFW and Netbeans acting up -


i have problems linking glfw in netbeans, have followed instructions here:

http://forums.netbeans.org/topic51143.html

i have installed cygwin , mingw on computer, had since earlier installation of cygwin, tried use compile glfw program, got same error, decided try mingw, per instructions, still same problem. also, reason can't use msys make.exe make command, compiling c++ hello world, have use 1 in cygwin instead. have set windows path variable include locations of both msys bin directories.

"1) must installed (dlls, etc)? glfw.dll libgcc_s_dw2-1.dll libstdc++-6.dll"

i not sure means, installed in instance mean system32/syswow64 should contain mentioned .dlls?

my output program (using linker properties specified here : http://forums.netbeans.org/topic51143.html)

#include <cstdlib> #include <stdio.h> #include <gl/glfw.h>  using namespace std;  int main(int argc, char** argv) {     if (!glfwinit())         return -1;      return 0; } 

yields:

"/usr/bin/make" -f nbproject/makefile-debug.mk qmake= subprojects= .build-conf make[1]: entering directory /cygdrive/c/users/sysdba/documents/netbeansprojects/glfw' "/usr/bin/make" -f nbproject/makefile-debug.mk dist/debug/mingw_qt-windows/glfw.exe make[2]: entering directory/cygdrive/c/users/sysdba/documents/netbeansprojects/glfw' mkdir -p build/debug/mingw_qt-windows rm -f build/debug/mingw_qt-windows/main.o.d g++.exe -lglfwdll -dglfw_dll -c -g -wall -i../../../downloads/glfw-2.7.7.bin.win64/glfw-2.7.7.bin.win64/lib-mingw -mmd -mp -mf build/debug/mingw_qt-windows/main.o.d -o build/debug/mingw_qt-windows/main.o main.cpp g++: -lglfwdll: linker input file unused because linking not done mkdir -p dist/debug/mingw_qt-windows g++.exe -lglfwdll -dglfw_dll -o dist/debug/mingw_qt-windows/glfw build/debug/mingw_qt-windows/main.o -l../../../../../mingw/lib -lglfw -lglu32 -lopengl32 -lglfwdll nbproject/makefile-debug.mk:62: recipe target dist/debug/mingw_qt-windows/glfw.exe' failed make[2]: leaving directory/cygdrive/c/users/sysdba/documents/netbeansprojects/glfw' nbproject/makefile-debug.mk:59: recipe target .build-conf' failed make[1]: leaving directory/cygdrive/c/users/sysdba/documents/netbeansprojects/glfw' nbproject/makefile-impl.mk:39: recipe target .build-impl' failed build/debug/mingw_qt-windows/main.o: in functionmain': /cygdrive/c/users/sysdba/documents/netbeansprojects/glfw/main.cpp:20: undefined reference `_imp_glfwinit@0' collect2: ld returned 1 exit status make[2]: * [dist/debug/mingw_qt-windows/glfw.exe] error 1

any idea of problem be? related fact not using msys make.exe make command?

i fixed mingw install, use make.exe in mingw msys, instead of cygwin mysys, did not help.

not of answer, seems problem glfw somewhere, not work. switched freeglut, worked charm, without hassle.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -