A code error while using graphics

#include <g2.h>
#include <g2_PS.h>

main()
{
int id;
id = g2_open_PS("rect.ps", g2_A4, g2_PS_land);
g2_rectangle(id, 20, 20, 150, 150);
g2_close(id);
return 0;
}



can someone please tell me the mistake in the code......

one of the error reads as...........

unresolved external '_g2_open PS' referenced from c:\documents and settings\local user\desktop

I didnot understand it ............

I saved the cpp file in the desktop.......is it wrong to do that........
I have the header files required........
Topic archived. No new replies allowed.