[Omnetpp-l]How to add libraries in omnet v4.1 project ?

1,920 views
Skip to first unread message

thomas...@fr.thalesgroup.com

unread,
Jul 20, 2010, 4:26:19 AM7/20/10
to omn...@googlegroups.com
Hello,
 
I can't find how to add libraries in a omnet project.
 
I read in Eclipse help that there is a Library tab under Path and Symbols but it is missing and i don't know how to get it back.
 
Thanks,
 
    Thomas

LIN Peng

unread,
Jul 20, 2010, 5:48:36 AM7/20/10
to omn...@googlegroups.com
right click on the project and select properties, you can find it
under the C/C++ build -> path and symbols

hope it helps

thomas...@fr.thalesgroup.com

unread,
Jul 20, 2010, 5:53:08 AM7/20/10
to omn...@googlegroups.com
That is the problem : there is a 'library path' tab but the 'library' tab is
missing.

Thanks for replying

-----Message d'origine-----
De : omn...@googlegroups.com [mailto:omn...@googlegroups.com] De la part
de LIN Peng
Envoyé : mardi 20 juillet 2010 11:49
À : omn...@googlegroups.com
Objet : Re: [Omnetpp-l]How to add libraries in omnet v4.1 project ?

right click on the project and select properties, you can find it
under the C/C++ build -> path and symbols

hope it helps

--
You received this message because you are subscribed to the Google Groups
"omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to
omnetpp+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/omnetpp?hl=en.

LIN Peng

unread,
Jul 20, 2010, 5:58:49 AM7/20/10
to omn...@googlegroups.com
In normal state, there'll be button "add..", if not, maybe you need to
.configure the whole IDE again

HAEFLINGER, PATRICK (PATRICK)

unread,
Jul 20, 2010, 6:00:51 AM7/20/10
to omn...@googlegroups.com
Just click on "add" button
Patrick

-----Message d'origine-----
De : omn...@googlegroups.com [mailto:omn...@googlegroups.com] De la part de thomas...@fr.thalesgroup.com
Envoyé : mardi 20 juillet 2010 11:53
À : omn...@googlegroups.com
Objet : RE: [Omnetpp-l]How to add libraries in omnet v4.1 project ?

thomas...@fr.thalesgroup.com

unread,
Jul 20, 2010, 8:29:01 AM7/20/10
to omn...@googlegroups.com
The 'add' button will only add a path to the libraries but will not include
these libraries in the project,
or am i completly misunderstanding it ?

-----Message d'origine-----
De : omn...@googlegroups.com [mailto:omn...@googlegroups.com] De la part

de HAEFLINGER, PATRICK (PATRICK)
Envoyé : mardi 20 juillet 2010 12:01

LIN Peng

unread,
Jul 20, 2010, 8:37:40 AM7/20/10
to omn...@googlegroups.com
maybe you misunderstand some concept,
the library is that used only after the compile process, if the .lib
(.dll, or .a, etc) files is not created yet, such path won't work at
all.
if so, you'll need to add path in the "include" tab, not the library.
Note that the build process have two steps: complie for .o, and link
for .exe (here, linking uses the .o files to generate the binary .exe,
if specific option applied, linking will eventually generate other
types of binary: .a, .lib or .dll)


2010/7/20 <thomas...@fr.thalesgroup.com>:

thomas...@fr.thalesgroup.com

unread,
Jul 20, 2010, 8:41:06 AM7/20/10
to omn...@googlegroups.com
Ok i think i get it now.

Many Thanks for making it clear.

Thomas

-----Message d'origine-----
De : omn...@googlegroups.com [mailto:omn...@googlegroups.com] De la part
de LIN Peng

Envoyé : mardi 20 juillet 2010 14:38

Reply all
Reply to author
Forward
0 new messages