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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: undefined symbol: O_CREAT |
From: | Dirk Zimoch <[email protected]> |
To: | 张玉亮 <[email protected]> |
Cc: | [email protected] |
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