Re: [micro-manager-general] C++ Qt MMCore on OSx
Status: Beta
Brought to you by:
nicost
|
From: Nico S. <nic...@uc...> - 2016-09-29 15:39:58
|
Hi Fabrizio,
On 9/29/2016 3:43 AM, Fabrizio Radaelli wrote:
> After I wrote this simple code:
>
> #include <QCoreApplication>
> #include <QDebug>
> #include "Configuration.h"
> #include "MMCore.h"
> int main(int argc, char *argv[])
> {
> QCoreApplication a(argc, argv);
> CMMCore core;
> core.getVersionInfo();
> return a.exec();
> }
> But I got this alert:
> " 'const' type qualifier on return type has no effect
> [-Wignored-qualifiers] const bool IsReadOnly() const {return readOnly_;} "
Your compiler probably provided the filename and line number for this
warning. I think this is in Configuration.h, and my version (current
2.0 code, should be the same in the current 1.4 code), likely will no
longer trigger this warning. Nevertheless, you can safely ignore this.
> and this errors:
> " error: symbol(s) not found for architecture x86_64 "
> " error: linker command failed with exit code 1 (use -v to see
> invocation) "
Those errors are from the linker. They mean that the linker can not
find the compiled code representing the functions/classes you are
calling that are in the included header files. You will need to tell
the linker where these library files (like libMMCore.so) are located.
How to do that depends on your environment. It is best to read
documentation for your coding environment and to look at examples.
Best,
Nico
|