EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  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  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Problem linking a Channel Access application on Windows using Visual Studio
From: [email protected]
To: [email protected]
Date: Wed, 7 Jan 2004 16:06:16 +1100
G'day,

I'm hoping that someone can help me with a problem I'm having with linking
a Channel Access (3.14.4) program that I'm writing on windows 2000 using
Visual Studio C++ Version 6.0.

Everything was compiling and linking fine (using a variety of different
Channel Access functions) until I found that I needed to use the
dbf_type_to_DBR_TIME macro which is defined in db_access.h.  At this point,
attempting to link the application resulted in the following error:

============================================================
--------------------Configuration: mcatest - Win32
Debug--------------------
Linking...
Channel.obj : error LNK2001: unresolved external symbol _dbf_text_dim
Debug/mcatest.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

mcatest.exe - 2 error(s), 0 warning(s)
============================================================

The symbol dbf_text_dim is used by the macro dbf_type_to_DBR_TIME and is
defined in access.cpp.  I've checked with the Visual Studio Dependency
Walker and have verified that dbf_text_dim is in the ca.dll and ca.lib
files.

I am at a loss to understand why the linker cannot resolve this symbol.  Is
there anyone out there who can tell me what I need to do to get my
application to link correctly so that I can use the dbf_type_to_DBR_TIME
macro?

Steve Banks
Australian Synchrotron Project
Department of Infrastructure
Level 18, 80 Collins Street
Melbourne   VIC   3000
tel:  +613 9655 6303
fax:  +613 9655 8666
web: www.synchrotron.vic.gov.au



Replies:
RE: Problem linking a Channel Access application on Windows using Visual Studio Jeff Hill

Navigate by Date:
Prev: EDM: Passing PV values to shell commands Hayton, TG (Tim)
Next: RE: EPICS R3.14.4 for vxWorks-pentium Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: EDM: Passing PV values to shell commands Hayton, TG (Tim)
Next: RE: Problem linking a Channel Access application on Windows using Visual Studio Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024