Including Libraries [message #112381] |
Fri, 23 July 2004 19:08  |
Eclipse User |
|
|
|
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 #125769 is a reply to message #125625] |
Wed, 03 November 2004 12:10  |
Eclipse User |
|
|
|
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
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.28440 seconds