I am trying to build the Channel Archiver using g++ on Solaris 8 and I get
the following error
gnumake[2]: Entering directory
`/usr/local/epics/extensions_04_01/src/ChannelArchiver/LibIO/O.solaris'
/usr/local/bin/g++
-ansi
-pedantic
-Wtraditional
-g
-Wall
-Wmissing-prototypes
-Woverloaded-virtual
-Wwrite-strings
-Wconversion
-Wstrict-prototypes
-Wpointer-arith
-Winline
-Dsolaris
-I/usr/local/epics/base/src/ca
-DSOLARIS
-fPIC
-D_REENTRANT
-DUNIX
-DEXPL_TEMPL
-I.
-I..
-I../../../../include
-I../../../../include/os/solaris
-I../../../../include
-I/usr/local/epics/base/include
-I/usr/local/epics/base/include/os/solaris
-c ../MatlabExporter.cc
In file included from ../MatlabExporter.cc:6:
.../MatlabExporter.cpp: In method `void
MatlabExporter::exportChannelList(const
vector<stdString,allocator<stdString> > &)':
.../MatlabExporter.cpp:137: `strdup' undeclared (first use this function)
.../MatlabExporter.cpp:137: (Each undeclared identifier is reported only once
.../MatlabExporter.cpp:137: for each function it appears in.)
gnumake[2]: *** [MatlabExporter.o] Error 1
gnumake[2]: Leaving directory
`/usr/local/epics/extensions_04_01/src/ChannelArchiver/LibIO/O.solaris'
gnumake[1]: *** [install.solaris] Error 2
gnumake[1]: Leaving directory
`/usr/local/epics/extensions_04_01/src/ChannelArchiver/LibIO'
gnumake: *** [all] Error 2
>
I tried adding:
#include <string.h>
to the file. However, this did not help.
I wrote this short program; compiled it; and it worked fine:
#include <stdio.h>
#include <string.h>
void main()
{
char *a;
a=strdup("strdup actually works\n");
printf("%s",a);
}
I am not sure why it thinks strdup is undeclared.
If anyone can help I would appreciate it.
Thanks in advance,
Tim
============================================
Dr. Timothy Graber
The Center for Advanced Radiation Sources
The University of Chicago
Address:
CARS/Bldg. 434D
Argonne National Laboratory
9700 South Cass Ave.
Argonne, IL 60439
PHONE: (630)252-0462
FAX: (630)252-0460
- Replies:
- snc delay() Ian A Smith
- Navigate by Date:
- Prev:
Re: EPICS Base Bug Report Marty Kraimer
- Next:
snc delay() Ian A Smith
- 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: EPICS Base Bug Report Marty Kraimer
- Next:
snc delay() Ian A Smith
- 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
|