LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-28-2006, 01:18 PM   #1
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
Scons && programming problems


Just installed Scons and tried to make simple ncurses program but it fails giving this:
Code:
root@Shodan:/mnt/hd3/programming/zombie# scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o Main main.o -L/usr/include -lcurses.h -lmenu.h
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld: cannot find -lcurses.h
collect2: ld returned 1 exit status
scons: *** [Main] Error 1
scons: building terminated because of errors.
root@Shodan:/mnt/hd3/programming/zombie# find /usr/include -name curses
root@Shodan:/mnt/hd3/programming/zombie# find /usr/include -name curses.h
/usr/include/curses.h
/usr/include/ncurses/curses.h
root@Shodan:/mnt/hd3/programming/zombie# find /usr/include -name menu.h
/usr/include/ncurses/menu.h
/usr/include/menu.h
Ideas how to get this Scons to work?

Here's my SConstruct
Code:
Program('Main', 'main.cpp', LIBS=['curses.h', 'menu.h'], LIBPATH='/usr/include')
 
Old 08-28-2006, 01:38 PM   #2
nuxrl
Member
 
Registered: Jun 2006
Location: NY, USA
Distribution: Slackware, Arch
Posts: 176

Rep: Reputation: 35
I don't know much about scons, but after looking at the configuration and the output from gcc/g++, it seems that you used the header directory as the lib directory.
 
Old 08-28-2006, 01:48 PM   #3
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 37
Yeah, I noticed that too after thinking that little bit.
Still can't make it to work though but I think that's caused by the code itself.
 
Old 08-28-2006, 07:18 PM   #4
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
LDFLAGS="-L/usr/include" ? The failure is from the linker, not the compiler. Alas, I've not used scons either =/
 
Old 08-29-2006, 02:40 AM   #5
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 37
Yeah, I should try out few easier projects to get in touch with the c++ programming again and then apply that to ncurses things. Atleast getting more familiar with the Scons before that
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
zsnes && logitech dual action gamepad && dpad woes John5788 Linux - Games 5 10-29-2008 09:56 PM
AOL UK && BT Voyager 100 && Slackware 10.2 && RP-PPPoE pitt0071 Linux - Networking 3 01-17-2006 06:10 AM
Comming from Ferora to Ubontu kde & Qt programming problems impeteperry Ubuntu 1 09-03-2005 09:23 PM
Japanese canna won't work : Warning: かな漢字変&am OrganicOrange84 Debian 3 06-30-2005 02:28 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration