LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-13-2011, 03:16 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,294

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
drawtiming error - Programming, gcc version or what?


Code:
make[3]: Entering directory `/home/dec/download/drawtiming-0.7.1/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/include/ImageMagick   -DYYDEBUG=1 -g -O2 -MT timing.o -MD -MP -MF ".deps/timing.Tpo" -c -o timing.o timing.cc; \
then mv -f ".deps/timing.Tpo" ".deps/timing.Po"; else rm -f ".deps/timing.Tpo"; exit 1; fi
timing.cc: In member function 'void timing::postscript_gc::print(const std::string&) const':
timing.cc:944:39: error: 'strcasecmp' was not declared in this scope
timing.cc: In static member function 'static bool timing::postscript_gc::has_ps_ext(const std::string&)':
timing.cc:962:42: error: 'strcasecmp' was not declared in this scope
make[3]: *** [timing.o] Error 1
make[3]: Leaving directory `/home/dec/download/drawtiming-0.7.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/dec/download/drawtiming-0.7.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dec/download/drawtiming-0.7.1'
make: *** [all] Error 2

I'm on a pretty complete slackware-13.37 box (32 bit) and have this error compiling drawtiming. It's pretty undemanding in dependencies. This has the vague ring of some class of a programming syntax error. Some sort of a demarkation dispute. Can anyone suggest how to proceed?
 
Old 11-13-2011, 03:43 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
strcasecmp() is declared in the cstring header, so the file timing.cc needs to have

Code:
#include <cstring>
at the top (before the line "using namespace std;").

Last edited by Nylex; 11-13-2011 at 06:08 AM.
 
1 members found this post helpful.
Old 11-13-2011, 08:07 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,294

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Yep, thanks, that got me over that hurdle.

I take back what I said about it being undemanding in dependencies. I moved on to one of the longest tailspins I have seen in compiling as it complained for the lack of libjasper, libIlmThread, libHalf, and libTex and then announced function by function what wasn't there. It seemed I installed ImageMagick without all it's dependencies. I'll thank you once again and go off and sort that lot out.
 
Old 11-13-2011, 10:40 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Is that still for drawtiming? The dependencies should all be present in 13.37, as I managed to build it without problems (after fixing the above, of course).
 
Old 11-14-2011, 12:46 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,294

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Yeah, they were all in Slackware-13.37. Apparently I managed to install ImageMagick (and rarely use it) and did not install ilmbase or summat, so the tailspin had a number of libs which were missing dependencies of ImageMagick, libjasper, libTex, libHalf & friends.

Drawtimings is fairly good. For the electronics nerds out there, it does have dependency tracking but lacks logical operators - (N)AND, (N)OR, EXOR, & NOT, which would make it really powerful.

I'm designing with a State Machine approach, and dragging my designing skills (optimized for 1980s stuff) into the 21st century. I feel at times like Rip van Winkle with a chronic case of future shock :-).
 
Old 11-18-2011, 10:39 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,294

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Hey Nylex:

If you are using drawtiming for drawing (I presume electronic) timings, what are you using for drawing flow charts, asm charts etc??
 
Old 11-18-2011, 11:11 AM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I don't use it. I only downloaded it to try and build it to help with your problem!
 
1 members found this post helpful.
Old 11-19-2011, 03:24 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,294

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Well, thank you kindly for taking the trouble!
 
Old 11-19-2011, 08:19 AM   #9
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
No problem. It wasn't that much effort and I was curious about the error message anyway .
 
Old 11-27-2011, 11:48 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,294

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Fwiw, I am using drawtiming now for a little bit. It lacks a method of displaying propogation. There's some examples of how to do it, but the minimum time segment is one clock tick. Apart from that it's excellent.

I settled on Dia for flowcharts, and it's reasonable. I have to fight with it about centring all text (= half the flowchart boxes are unavailable) but otherwise you can do stuff. I attach two small and less than brilliant output samples.
Attached Thumbnails
Click image for larger version

Name:	Acquire.jpg
Views:	19
Size:	45.0 KB
ID:	8485   Click image for larger version

Name:	Flowchart_2.png
Views:	14
Size:	20.0 KB
ID:	8486  
 
  


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
error: #error Your version of gcc miscompiles the __weak directive teraghavendragoud Linux - Kernel 2 09-19-2009 08:22 AM
Error due to old version of gcc (probably) tandre Programming 4 04-13-2005 11:01 AM
gcc programming error ?? sheka&teka Linux - Newbie 2 09-18-2003 01:06 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:10 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