[ markozelenovic @ 07.06.2008. 19:47 ] @
Code:
#include<cstdlib>
#include<iostream>
#include<winbgim.h>
using namespace std;
int main(){
    int gdriver=9;
    int gmode=2;
    initgraph(&gdriver,&gmode,"");
    setbkcolor(WHITE);
    setcolor(BLACK);
    cleardevice();
    circle(320,240,180);
    getch();
    closegraph();
    return 0;
}

izbacuje gresku:
Citat:
[Linker error] undefined reference to `IID_IPicture'

i jos takvih "Linker Gresaka".

ali ja sam u parameters na linker upisao:
-lbgi -lgdi32
a imam i ovaj heder"#include<winbgim.h>"

Whats wrong ???
[ Eurora3D Team @ 07.06.2008. 23:31 ] @
Verovatno nisi ukljucio neku Library...
Jel to mingw kompajler ?
[ deerbeer @ 08.06.2008. 07:12 ] @
http://www.codeproject.com/KB/...s/load_jpeg__gif_resource.aspx
[quote]#codeproject
For VC++ 6, ensure you have the following libraries in your 'VC98/Lib' directory: OLEPRO32.LIB and OLE32.LIB
..
..
hehe...I had the same problem
After messing around very bad...I discovered
that when u link the libs :

- libole32.a (link as -lole32)
- libolepro32.a (link as -lolepro32)

Then your compiler won't nag about OleLoadPicturePath(...)
For the IID_Picture obj, u have also have to link :
libuuid.a (link as -luuid)

[/qoute]


[ markozelenovic @ 08.06.2008. 07:49 ] @
Mingw kompajler i DevC++ IDE,
imam i libaries "
*libgi.a
*libconio.a

i to je sve u direktorijumu "lib"!!!
[ deerbeer @ 08.06.2008. 08:02 ] @
Onda nesto nije u redu sa redosledom linkovanja biblioteka u tvom projektu ...
Probaj da ukljucis linker options/switch (verovatno ga ima u DevC++ -u )
da ti ispisuje redosled lib-ova koji se include-uju u output/debug prozoru ...

U VC++ je to opcija :/verbose a evo i slicne problematike na
http://www.codeguru.com/forum/archive/index.php/t-269498.html

[ markozelenovic @ 10.06.2008. 08:46 ] @
Nasao sam resenje !!!

ps.
Hvala svima na odgovorima