开发者

Linker error in dev c++

I download this program, and I add a little modification. When I compile this I see this errors. I found in Internet solution, that this parameters

-lole32 -lkernel32 -lgdi32 -luuid -luser32

help me. I add this to linker and dev c++ throw me this errors

What is wrong? What parameters I must ad开发者_开发技巧d?


You need to add the -L parameters, to instruct the compiler where are the libraries that you specified with -l option.

If your installation of Dev-Cpp is on C:\DevCpp so you should add:

-L"C:\Devcpp\lib" -lole32 -lkernel32 -lgdi32 -luuid -luser32 -mwindows


Errors like these mean that probably you forgot to link a library. The -l** parameters tell the compiler to link the named libraries. Googling for one of the undefined references, e.g. "SafeArrayAccessData lib", led me to the MSDN site http://msdn.microsoft.com/en-us/library/ms891243.aspx describing the function, and showed me that it is part of the library Oleaut32.lib. So maybe adding the parameter -loleauth32 will solve the problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜