Argonne National Laboratory

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

Subject: RE: portable server
From: "Liyu, Andrei" <liyua@ornl.gov>
To: Jeff Hill <johill@lanl.gov>, tech-talk@aps.anl.gov
Date: Tue, 05 Oct 2004 10:26:02 -0400
Thank you - Jeff.
I did normal (not Makefile) project for Portable server in MVC.

Andrei.

-----Original Message-----
From: Jeff Hill [mailto:johill@lanl.gov] 
Sent: Monday, October 04, 2004 8:07 PM
To: Liyu, Andrei; tech-talk@aps.anl.gov
Subject: RE: portable server


Hello again Liyu,

>From here it appears that you have two options:

1) Use a "makefile" project in visual C++ and build using the EPICS
build
system to create your server. With this approach you don't need to be
intimately familiar with the MS compiler's build options.

2) Otherwise, you can run the EPICS build, observe what options are
being
used, and then configure your visual C++ project to use the same
options.
You will need to translate between the menu options you see in the
visual
C++ GUI and the low level options used by the compiler.

> exAsyncPV.obj : error LNK2001: unresolved external symbol "private:
> static class epicsMutex * gdd::pGlobalMutex"
> (?pGlobalMutex@gdd@@0PAVepicsMutex@@A)

This might occur because the build options you are using are not
compatible
with the libraries created when building EPICS base. In particular, you
will
need to specify options for thread safe library interfaces, the same
debugging options, and the same DLL vs object library choices for the
basic
runtime support as were used to build EPICS base. Alternatively, simply
omitting the gdd library from the link line could be the sole cause of
trouble.

Jeff

> -----Original Message-----
> From: Liyu, Andrei [mailto:liyua@ornl.gov]
> Sent: Monday, October 04, 2004 2:09 PM
> To: tech-talk@aps.anl.gov
> Subject: RE: portable server
> 
> I have used Andrew's advice, created Portable server and built it. It
> works. It is like I did it one year ago but forget. Thank you -
Andrew.
> 
> But then I decide to collect MVC++ project from that example. I could
> compile but couldn't do linking. I have message like this
> ================
> exAsyncPV.obj : error LNK2001: unresolved external symbol "private:
> static class epicsMutex * gdd::pGlobalMutex"
> (?pGlobalMutex@gdd@@0PAVepicsMutex@@A)
> ===============
> 
> >From another side
> dumpbin gdd.lib /EXPORTS    ->
>                   ?pGlobalMutex@gdd@@0PAVepicsMutex@@A (private:
static
> class epicsMutex * gdd::pGlobalMutex)
> 
> View file : __imp_?pGlobalMutex@gdd@@0PAVepicsMutex@@A
> 
> Has anybody suggestion?
> 
> Thanks, Andrei.
> 
> P.s. I know how I could work from MVC environment with make.
> 
> -----Original Message-----
> From: Andrew Johnson [mailto:anj@aps.anl.gov]
> Sent: Friday, October 01, 2004 7:12 PM
> To: Liyu, Andrei
> Cc: tech-talk@aps.anl.gov
> Subject: Re: portable server
> 
> Liyu, Andrei wrote:
> > Hi,
> > 1. I would like to write portable server. There is tutorial of
> portable
> > server. It has example. But example has mistakes and it is like
Epics
> > base h file were changed too. I spent some time to build it but
hasn't
> > success.
> > Has anybody working code of portable server from tutorial or code of
> the
> > simplest another portable server? I have 3.14.4, Windows XP, MVC++
> 6.0.
> 
> There is an portable server template provided for use with
> makeBaseApp.pl
> in your version of Base, which should give you a working example.  To
> create an application to try out, run makeBaseApp and specify
> caServerApp
> as the template type - something like this, but you'll probably have
to
> modify the command somewhat to get it to run on Windows (which I can't
> help you with as I only use Unix):
> 
>    mkdir example
>    cd example
>    perl /path/to/base/bin/win32-x86/makeBaseApp.pl -t caServerApp
server
> 
> This will create the necessary files to make your own server, which
you
> can then compile, edit and experiment with.  Be sure to read the
README
> text file in the serverApp subdirectory for more information about the
> server.
> 
> - Andrew
> --
> Dear God, I didn't think orange went with purple until I saw
> the sunset you made last night.  That was really cool. - Caro




Navigate by Date:
Prev: Re: Long Error Message Marty Kraimer
Next: Re: Probe bug (enum fields) Kenneth Evans, Jr.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: RE: portable server Jeff Hill
Next: Probe bug (enum fields) Bernd Schoeneburg
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·