Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #15669
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!204.52.135.9.MISMATCH!newsfeed.hal-mli.net!feeder1.hal-mli.net!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | clusardi2k@aol.com |
| Newsgroups | comp.lang.java.programmer |
| Subject | On Windows 7, How do you reference a "static library" (a dot lib) in NetBeans |
| Date | Wed, 27 Jun 2012 10:59:26 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 23 |
| Message-ID | <e90908a3-8178-4ee8-8cdb-4eed92391101@googlegroups.com> (permalink) |
| NNTP-Posting-Host | 198.151.13.60 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | posting.google.com 1340819967 6694 127.0.0.1 (27 Jun 2012 17:59:27 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Wed, 27 Jun 2012 17:59:27 +0000 (UTC) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=198.151.13.60; posting-account=r24XpwkAAABfAJg5TJRsTScS4AL5MjOT |
| User-Agent | G2/1.0 |
| X-Received-Bytes | 2021 |
| Xref | csiph.com comp.lang.java.programmer:15669 |
Show key headers only | View raw
I'm using Windows 7, NetBeans 7.1.2 and the C:\MinGW\bin\g++.exe compiler/linker. I have been trying to reference a static library (file.lib) using linker options such as "-l" and "-L". All attempts have been unsuccessful (one possible reason is) because the "-l" option only takes the name of the library (without a leading "lib" in the filename and no suffix) and probably not a path to the library file. The "L" option takes a path to the folder containing the library, but it does not work for me. http://mingw.org/wiki/LibraryPathHOWTO My question is how do you reference a static library within NetBeans? You can modify the project's linking options by right clicking on the project and selecting properties. From there, you can specify a library folder, a specific library file, or you can enter a specific linker option such as "-lfile". I have tried various ways to get my project to use the dot lib without success. When I build the project, I get a lot of undefined references. Thanks
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
On Windows 7, How do you reference a "static library" (a dot lib) in NetBeans clusardi2k@aol.com - 2012-06-27 10:59 -0700
Re: On Windows 7, How do you reference a "static library" (a dot lib) in NetBeans Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-06-27 18:21 +0000
Re: On Windows 7, How do you reference a "static library" (a dot lib) in NetBeans Arne Vajhøj <arne@vajhoej.dk> - 2012-06-27 22:11 -0400
Re: On Windows 7, How do you reference a "static library" (a dot lib) in NetBeans bilsch <bilsch01@gmail.com> - 2012-07-07 03:16 -0700
Re: On Windows 7, How do you reference a "static library" (a dot lib) in NetBeans Roedy Green <see_website@mindprod.com.invalid> - 2012-07-07 21:18 -0700
Re: On Windows 7, How do you reference a "static library" (a dot lib) in NetBeans Arne Vajhøj <arne@vajhoej.dk> - 2012-08-19 21:27 -0400
csiph-web