Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Re: undefined symbol: O_CREAT
From: Dirk Zimoch <dirk.zimoch@psi.ch>
To: 张玉亮 <zhangyl@ihep.ac.cn>
Cc: tech-talk@aps.anl.gov
Date: Fri, 09 Mar 2012 15:22:34 +0100
张玉亮 wrote:
Hello,

I tried to open a file on my linux host machine via vxworks function open("filename", O_CREAT|O_WRONLY, 0644) from target ME5100. When I run the start file st.cmd ,it printed "undefined symbol: O_CREAT". Which supprot should add to the vxworks kernel image?
Thank you in advance!

Zhang Yuliang
Insititute of High Energy Physics

O_CREAT is a macro that should be defined when you #include <fcntl.h>.

Didn't you get any compiler warnings? They are often more useful than errors from the loader.

Didn't you have any problems with O_WRONLY? O_CREAT and O_WRONLY are defined in the same file!

Dirk

Replies:
Re: undefined symbol: O_CREAT Kasemir, Kay
References:
undefined symbol: O_CREAT 张玉亮

Navigate by Date:
Prev: undefined symbol: O_CREAT 张玉亮
Next: Re: undefined symbol: O_CREAT Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: undefined symbol: O_CREAT 张玉亮
Next: Re: undefined symbol: O_CREAT Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·