I'm learning C, and I want to use my first external library.
Firstly I'll show the simplistic code I'm trying to compile:
#include <stdlib.h>
#include <iup.h>
int main(int argc, char **argv)
{
IupOpen(&argc, &argv);
IupMessage("Hello World 1", "Hello world from IUP.");
IupClose();
return EXIT_SUCCESS;
}
The external library being IUP. I have downloaded the following to my documents folder:
Then I configured Netbeans build options by first adding the header file directory:
Then finally I added the .dll file:
(I added a link because I thought the post was getting too long)
However, while the code no longer shows a red underline under the functions I'm trying to use, the compiler shows "cannot find -liup"
I don't know what could be going wrong. I was following this link tutorial:
http://webserver2.tecgraf.puc-rio.br/iup/en/ide_guide/netbeans.html
Thank you!