User Tools

Site Tools



install ok, can't compile examples

Brandt Belson, 2009-02-12 14:29

I'm having trouble getting an example to compile. I have the channelflow-1.3.3 folder in /home/bbelson/channelflow-1.3.3 (my home directory). I had no problem using make, make test, and make install. I tried ./couette -h and it also worked, outputting what the documentation said it should. My problem came up when I tried to make the errorexamples.cpp. I ran “make ./errorexamples.dx” and the following resulted:

rainier:examples bbelson$ make ./errorexamples.dx
g++ -Wall -g -O1 -fno-inline -DDEBUG -I/home/bbelson/channelflow-1.3.3/include -o -c errorexamples.cpp
errorexamples.cpp:3:29: error: channelflow/dns.h: No such file or directory
errorexamples.cpp:4:35: error: channelflow/flowfield.h: No such file or directory
errorexamples.cpp:7: error: expected namespace-name before ';' token
errorexamples.cpp:7: error: '<type error>' is not a namespace
errorexamples.cpp: In function 'int main()':
errorexamples.cpp:24: error: 'Real' does not name a type
errorexamples.cpp:25: error: 'Real' does not name a type
errorexamples.cpp:26: error: 'Real' does not name a type
errorexamples.cpp:27: error: 'Real' does not name a type
errorexamples.cpp:30: error: 'FlowField' was not declared in this scope
errorexamples.cpp:30: error: expected `;' before 'u'
errorexamples.cpp:31: error: expected `;' before 'v'
errorexamples.cpp:34: error: 'u' was not declared in this scope
errorexamples.cpp:37: error: 'Complex' was not declared in this scope
errorexamples.cpp:40: error: 'v' was not declared in this scope
errorexamples.cpp:19: warning: unused variable 'Nx'
errorexamples.cpp:21: warning: unused variable 'Nz'
make: *** [] Error 1

I changed CHANNELDIR to be $(HOME)/channelflow-1.3.3 as well, but got the same message. The first error goes away if I simply change errorexamples.cpp to have #include “../channelfl ow/dns.h” but that also creates many other errors because files are not found within dns.h. Milos Ilak, another grad student here who has used channelflow before, encountered the sa me error message when he tried it on his own computer (with a pre-existing installation of channelflow). Do you know what might be causing this? I'm sorry if this is a simple error, but neither Milos or I know how to fix it.

Thanks, Brandt


installation/install_ok_can_t_compile_examples.txt · Last modified: 2010/02/02 07:55 (external edit)