C ++: how to add a library to Netbeans (DarkGDK + DirectX SDK)

I am trying to learn how to make games with DarkGDK. But I have to write in Visual Studio. I do not like Visual Studio. His suggestions ( Ctrl-Spacefor completion) are bad (in my opinion) and the compiler is broken (see My previous questions).

So, I want to switch to Netbeans, with MSys and MinGW. But I can not use DarkGDK libraries in Netbeans. I added two folders:

  • C: \ Program Files \ The Game Creators \ Dark GDK \ Include
  • C: \ Program Files \ Microsoft DirectX SDK (August 2007) \ Include

After adding these included directories I can #include <DarkGDK.h>.
But he shows a warning: " There are unresolved includes inside <DarkGDK.h>"

And when I try to compile: main.cpp:9:21: warning: DarkGDK.h: No such file or directory


Visual Studio has Include filesand Library files. And in Netbeans only exists Include Directorieswhen I go to Tools -> Options -> C / C ++ -> Code Assistance.

So my question is: "How to add library files to Netbeans"?
Or someone else did it and knows how to do it.

+5
source share
1 answer

Personally, I found that the include directories in Tools -> Options do not work. You need to right-click on your project and go to properties -> C ++ Compiler and add your include directories. Then from properties -> Linker add your library directories and libraries.

+5
source

All Articles