View previous topic :: View next topic |
Author |
Message |
just free man
Joined: 25 Jul 2007 Posts: 4
|
Posted: Thu Jul 26, 2007 1:59 pm Post subject: Compiling fails! |
|
|
When I try to compile h2d:
Code: |
alex@alex-pc ~/projects/d/h2d $ make
g++ -o h2d h2d.cc
h2d_struct.h: In constructor 'h2d::StructGrammar::definition<T>::definition(const h2d::StructGrammar&)':
h2d_struct.h:69: error: 'space_p' was not declared in this scope
h2d_struct.h:71: error: 'alnum_p' was not declared in this scope
h2d_struct.h:72: error: there are no arguments to 'str_p' that depend on a template parameter, so a declaration of 'str_p' mus
t be available
h2d_struct.h:72: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is d
eprecated)
h2d_struct.h:72: error: there are no arguments to 'str_p' that depend on a template parameter, so a declaration of 'str_p' mus
t be available
h2d_struct.h:73: error: there are no arguments to 'ch_p' that depend on a template parameter, so a declaration of 'ch_p' must
be available
h2d_struct.h:77: error: 'print_p' was not declared in this scope
h2d_struct.h:77: error: there are no arguments to 'chset_p' that depend on a template parameter, so a declaration of 'chset_p'
must be available
...
|
I have Gentoo, GCC 4.1.2, boost 1.33.1. ![Sad](images/smiles/icon_sad.gif) |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Cabal
Joined: 28 Apr 2004 Posts: 18 Location: UK
|
Posted: Tue Oct 30, 2007 2:02 am Post subject: |
|
|
apologies for the long delay in getting back to you - I had thought no-one was using this anymore.
as to your problem if you haven't already solved it... the first and most obvious issue is that you don't appear to be using the Makefile supplied with h2d. The included Makefile ==
INCLUDE += /usr/local/src/boost_1_31_0
h2d: h2d.cc h2d.h h2d_xlat.h h2d_struct.h h2d_transform.h h2d_echo.h h2d_d.h
g++ -o h2d ${INCLUDE:%=-I%} h2d.cc
... and so should have '-I/usr/local/src/boost_1_31_0' in the compile line - yours doesn't. You've possibly deleted the INCLUDE= line. You should edit that line to point to where your boost headers are installed.
Hope this helps. I'll check back a little more regularly for a while if you have more issues. _________________ In all large corporations, there is a pervasive fear that someone, somewhere is having fun with a computer on company time. Networks help alleviate that fear.
John C. Dvorak |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|