Compile error on Ubuntu 18.04

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile error on Ubuntu 18.04

Petro
Hi list.
I try to compile mm on Ubuntu 18.04 but I get the following error:
-------------------
nBoardHW.o
OnBoardHW.cpp: In member function ‘void OnBoardHW::GetSerialNumber(unsigned int, char*)’:
OnBoardHW.cpp:100:2: error: ‘strcpy’ was not declared in this scope
  strcpy(serialN, sourceSerialNumber_[slot-1].c_str());
  ^~~~~~
OnBoardHW.cpp:100:2: note: suggested alternative: ‘strtoq’
  strcpy(serialN, sourceSerialNumber_[slot-1].c_str());
  ^~~~~~
  strtoq
Makefile:529: recipe for target 'OnBoardHW.lo' failed
make[2]: *** [OnBoardHW.lo] Error 1
make[2]: Залишаю каталог "/home/petro/mm/micro-manager1.4/DeviceAdapters/OxxiusCombiner"
Makefile:641: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Залишаю каталог "/home/petro/mm/micro-manager1.4/DeviceAdapters"
Makefile:521: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
------------------
Any idea how to fix it?
Thanks.
Petro.



_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general
Reply | Threaded
Open this post in threaded view
|

Re: Compile error on Ubuntu 18.04

Stuurman, Nico
Hi Petro,

> I try to compile mm on Ubuntu 18.04 but I get the following error:
> -------------------
> nBoardHW.o
> OnBoardHW.cpp: In member function ‘void
> OnBoardHW::GetSerialNumber(unsigned int, char*)’:
> OnBoardHW.cpp:100:2: error: ‘strcpy’ was not declared in this scope
>   strcpy(serialN, sourceSerialNumber_[slot-1].c_str());

This is likely caused by a missing include (apparently not needed on
other platforms).  I added the most obvious one.  Update your source
from svn and try to build again.

Best,

Nico


_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general