tags:

views:

69

answers:

2

Hi,

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 add?

+1  A: 

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

jyzuz
It's not working. I add this to linker and http://pastebin.com/Hcv6cPmW
asd
@asd: Could you paste the complete command line you're using to compile your program?
jyzuz
A: 

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.

Christian