Bug 56452

Summary: g++ 3.2 does not link with a project due to missing libraries from subdirectories
Product: [Applications] kdevelop Reporter: Alex Harford <alex>
Component: generalAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Slackware   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alex Harford 2003-03-26 21:19:32 UTC
Version:           2.1.4 (using KDE KDE 3.1)
Installed from:    Slackware Packages
Compiler:          g++ 3.2 
OS:          Linux

I have sent a KDevelop program to a friend who is trying to compile on his RedHat 8.0 system with g++ 3.2

I am using g++ 2.95.

Everything links fine on my computer but the libraries created in subdirectories do not link because it is not enough to include just the libBlah.a file for g++ 3.2.  It also needs to have the '-lBlah -LBlahdirectory' options added.

The workaround I have used it to take the line from the Makefile.am and add it manually:

buffy_LDFLAGS = $(all_libraries) -lCollision -LCollision -lCharacter -LCharacter

This workaround still works on my g++ 2.95 system.
Comment 1 Caleb Tennis 2003-03-26 22:11:52 UTC

*** This bug has been marked as a duplicate of 56450 ***