Hi,
On Thu, 2008-08-21 at 14:07 +0530, Umashankar Panda wrote:
> I am facing this problem while compling WebCA 1.1.0. What can be the
> probable cause?
> [...]
> /usr/bin/g++ -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS
> -D_XOPEN_SOURCE=500 -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux
> -D_REENTRANT -DEMBED_CA_REPEATER -I../../../gecko-sdk/include -ansi
> -O3 -Wall -g -fPIC -I. -I.. -I../../../include/os/Linux
> -I../../../include
> -I/home/umashankar/epics/base-3.14.9/include/os/Linux
> -I/home/umashankar/epics/base-3.14.9/include ../plugin.cpp
> ../plugin.cpp: In function 'char* stringValue(const NPString&)':
> ../plugin.cpp:48: error: 'strncpy' was not declared in this scope
> ../plugin.cpp: In member function 'virtual bool
> ScriptablePluginObject::GetProperty(void*, NPVariant*)':
> ../plugin.cpp:354: error: 'strdup' was not declared in this scope
> ../plugin.cpp:354: error: 'strlen' was not declared in this scope
> ../plugin.cpp:359: error: 'strdup' was not declared in this scope
> ../plugin.cpp:359: error: 'strlen' was not declared in this scope
> ../plugin.cpp: In function 'void push_connection_event(CPlugin*,
> [...]
looks like you are very likely using gcc >= 4.1 (check output of "g++
--version") and are missing a
#include <cstring>
line at the top of npca/src/plugin.cpp . Just put the line there and it
will compile.
HTH,
-Stefan
- References:
- Problem in compiling WebCA Umashankar Panda
- Navigate by Date:
- Prev:
Alias PV gateway seems unreliable Angelic Ebbers
- Next:
Re: RTEMS vs VxWorks Eric Norum
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
<2008>
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Problem in compiling WebCA Tom Pelaia
- Next:
EPICS in Industrial setting David Dudley
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
<2008>
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|