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?
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, eg "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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.