Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Including Libraries
Including Libraries [message #112381] Fri, 23 July 2004 19:08 Go to next message
Eclipse UserFriend
Originally posted by: khan_at.hotmail.com

Hi,
I am new to this so please bear with me. I am running RedHat 9, Eclipse
3M and CDT release 2. I am using managed project (since I don't how to
write make file) but unable to include my CGICC library files. When I
click on the project -> properties, I don't see any option for importing
libraries.

Please help, thanks.

-Tamim
Re: Including Libraries [message #112394 is a reply to message #112381] Sat, 24 July 2004 17:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexei.a.a

Am Khan wrote:

> click on the project -> properties, I don't see any option for importing
> libraries.
Take a look at Project->Properties -> "C++ Project Paths". There is a
tab for Libraries. Did not use it though...

Alexei
Re: Including Libraries [message #113474 is a reply to message #112394] Mon, 02 August 2004 16:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: oli.kfs.org

Alexei B wrote:
> > click on the project -> properties, I don't see any option for importing
> > libraries.
> Take a look at Project->Properties -> "C++ Project Paths". There is a
> tab for Libraries. Did not use it though...

I have to admit, I was expecting some visualisation of libraries - similar
to the includes bullet under projects. Perhaps something the team might
consider for a future version :)
Re: Including Libraries [message #125625 is a reply to message #112394] Tue, 02 November 2004 14:51 Go to previous messageGo to next message
Eclipse UserFriend
Hi All,

I don't have a "C++ Project Paths".

Project->Properties gives me:

Properties for Foo
-Info
-Builders
-C/C++ Build
-C/C++ File Types
-C/C++ Indexer
-Error/Binary Parsers
-Project References

I get the same result starting either from right-clicking on the project,
or from the project menu. I'm coming to CDT from using Eclipse for a
bunch of Java work, so I was immediately drawn to the red circle
containing an "X" right next to my bad #include "foo.h".

The error message is somewhat informative:
foo.h: No such file or directory

Unfortunately, it doesn't give me any clue about how to fix the problem.
Is this a filed user interface bug that I can vote for?

Any help would be greatly appreciated.

Thanks,
Curt

PS -- I'm running CDT 2.0.2, Eclipse 3.0.1, WinXP and Cygwin.

Alexei B wrote:

> Am Khan wrote:

> > click on the project -> properties, I don't see any option for importing
> > libraries.
> Take a look at Project->Properties -> "C++ Project Paths". There is a
> tab for Libraries. Did not use it though...

> Alexei
Re: Including Libraries [message #125769 is a reply to message #125625] Wed, 03 November 2004 12:10 Go to previous message
Eclipse UserFriend
Curt,
There is online documentation that explains how to do these types of
things in managed projects.

Just to expedite things for you, go to the property page called C/C++
Build. Libraries are specified in the linker options, as are library
paths. The C convention is to specify the name of the library without a
prefix or extension, so if you want to link 'libfoo.a', specify 'foo'.
Includes paths are specified in the compiler settings.

The UI reports the errors that the compiler reports. Philosophically, I
understand why users would like us to spell out in plain <fill in your
language of choice> what is wrong and how to fix it. However, all C
compilers have their own error reporting conventions and once you get
used to them, the error you saw is pretty clear.

Sean

Curt Cox wrote:
> Hi All,
>
> I don't have a "C++ Project Paths".
>
> Project->Properties gives me:
>
> Properties for Foo
> -Info
> -Builders
> -C/C++ Build
> -C/C++ File Types
> -C/C++ Indexer
> -Error/Binary Parsers
> -Project References
>
> I get the same result starting either from right-clicking on the project,
> or from the project menu. I'm coming to CDT from using Eclipse for a
> bunch of Java work, so I was immediately drawn to the red circle
> containing an "X" right next to my bad #include "foo.h".
>
> The error message is somewhat informative:
> foo.h: No such file or directory
>
> Unfortunately, it doesn't give me any clue about how to fix the problem.
> Is this a filed user interface bug that I can vote for?
>
> Any help would be greatly appreciated.
>
> Thanks,
> Curt
>
> PS -- I'm running CDT 2.0.2, Eclipse 3.0.1, WinXP and Cygwin.
>
> Alexei B wrote:
>
>
>>Am Khan wrote:
>
>
>>>click on the project -> properties, I don't see any option for importing
>>>libraries.
>>
>>Take a look at Project->Properties -> "C++ Project Paths". There is a
>>tab for Libraries. Did not use it though...
>
>
>>Alexei
>
>
>
Previous Topic:CDT on Windows XP Professional + Cygwin
Next Topic:CDT on Windows XP with VC++ Compilor
Goto Forum:
  


Current Time: Wed Jul 16 16:28:27 EDT 2025

Powered by FUDForum. Page generated in 0.28440 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top