thanks a lot for your answer! I am getting closer :)
I have some more question regarding linking my own lib with Omnet++:
- I am under Windows XP with Visual Studio 8
- I want to use the opp_nmakemake "-l" flag to integrate my stuff into
Omnet. Doing so, I still get some linker errors which, I think, are related
to the selected Runtime in my project and Omnet.
- As far as I can tell the precompiled Omnet libs are in
\OMNeT++\lib\vc80-{debug|release} and opp_nmakemake automatically determines
the installed compiled and selects the libs.
So I my questions are:
1. There are debug and release versions of the Omnet libs. How to I tell
opp_nmakemake which one to use? I did not find and command line switches for
that
2. With which runtime have the Omnet libs been compiled? Multithreaded (/MT)
or Multithreaded DLL (/MD)
3. With which character-set have the Omnet libs been compiled? (Multi-byte,
Unicode, not-set)?
I unfortunately did not find and project files which create the Omnet libs,
so I was not able to look this information up.
Thanks a lot. I highly appreciate your help!
Chris
>From: "Andras Varga" <and...@omnetpp.org>
>Reply-To: OMNeT++ Discussion List <omne...@omnetpp.org>
>To: "'OMNeT++ Discussion List'" <omne...@omnetpp.org>
>Subject: Re: [omnetpp] External Applications and Omnet++
>Date: Wed, 11 Jul 2007 11:11:16 +0200
>
>Hi Chris,
>
>It is of course possible to link external libs into an OMNeT++ executable.
>There are several alternatives to incorporate it into the makefile:
>
> 1. "-l" option to opp_(n)makemake
> 2. modify LIBS in a makefrag(.vc) file (this file gets textually inserted
> into the generated makefile, and lets you add new rules, modify
> makefile variables etc)
> 3. actually you can have your own makefile as well. It needs to compile
>the
> sources normally, and link the executable against sim_std, envir, and
> tkenv/cmdenv -- like opp_makemake generated makefiles do.
>
>This is a lot easier (and much more robust) than talking to the external
>component via a socket or something. I'd only choose the latter if there's
>no other way.
>
>Regards,
>Andras
>
>
> > -----Original Message-----
> > From: omnetpp-...@omnetpp.org
>[mailto:omnetpp-...@omnetpp.org]
> > On Behalf Of Chris
> > Sent: Tuesday, July 10, 2007 8:26 PM
> > To: omne...@omnetpp.org
> > Subject: [omnetpp] External Applications and Omnet++
> >
> > Hi,
> >
> > I have built a client-server-software and I would like to simulate its
> > performance in a large network with lots of servers and clients which
>run
> > the mentioned software.
> >
> > The software itself uses some third party libraries. As far as I
> > understand,
> > I encapsulate the software into a cSimpleModule and compile it into the
> > simulation. Is this possible if the software uses external libraries?
>Can
> > I
> > provide an extra makefile to omnet++ so that it understands how to build
> > my
> > piece of software? Or is it a better solution to do some
> > hardware-in-the-loop simulation and have my software run as an
>independent
> > process that communicates with omnet++ over a socket or something?
> >
> > Thanks a lot,
> > Chris
> >
> > _________________________________________________________________
> > Haben Spinnen Ohren? Finden Sie es heraus - mit dem MSN Suche Superquiz
> > via
> > http://www.msn-superquiz.de Jetzt mitmachen und gewinnen!
> >
> > _______________________________________________
> > OMNeT++ Mailing List
> > options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
> > archive: http://www.omnetpp.org/listarchive/index.php
>
>_______________________________________________
>OMNeT++ Mailing List
>options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
>archive: http://www.omnetpp.org/listarchive/index.php
_________________________________________________________________
Sie suchen E-Mails, Dokumente oder Fotos? Die neue MSN Suche Toolbar mit
Windows-Desktopsuche liefert in sekundenschnelle Ergebnisse. Jetzt neu!
http://desktop.msn.de/ Jetzt gratis downloaden!
_______________________________________________
OMNeT++ Mailing List
options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
archive: http://www.omnetpp.org/listarchive/index.php
For your second question :
By default CL use LIBC.lib with vc6 and vc7, but with vc8 LIBC is not
available.
So i have add this lines in configuser.vc to force using multithreaded
library (after LIB_SUFFIX definition).
!if "$(LIB_SUFFIX)"==".dll"
CFLAGS_DEBUG=$(CFLAGS_DEBUG) /MDd
CFLAGS_RELEASE=$(CFLAGS_RELEASE) /MD
!else
CFLAGS_DEBUG=$(CFLAGS_DEBUG) /MTd
CFLAGS_RELEASE=$(CFLAGS_RELEASE) /MT
!endif
Regards,
Franck
-----Message d'origine-----
De : omnetpp-...@omnetpp.org
[mailto:omnetpp-...@omnetpp.org]De la part de Chris
Envoyé : jeudi 9 août 2007 23:20
À : omne...@omnetpp.org
Objet : Re: [omnetpp] External Applications and Omnet++