Compiling question - thbezier.cxx
Good evening, just a little question; I am again at it, compiling therion. Well, when make'ing I got following error: | c++ -c -Wall -DTHLINUX -O2 -o thbezier.o thbezier.cxx | thbezier.cxx: In function ‘void chord_length_parameterize(const NR_Point*, | double*, unsigned int)’: | thbezier.cxx:1205: error: ‘stderr’ was not declared in this scope | thbezier.cxx:1206: error: ‘fprintf’ was not declared in this scope | make: *** [thbezier.o] Fehler 1 ...and, ah well, stderror and fprintf has a smell I know, so to say. So I opened thbezier.cxx and insterted to the include lines | #include "stdio.h" and it compiles through (at least thbezier.cxx). But this is... a bit too easy. Is this the right way, or do I have an error elsewhere (as usual), perhaps? Greetings, Christian
Am Dienstag, 20. November 2007 schrieb Christian Rößler (Roessler): Good evening again
| thbezier.cxx:1205: error: ‘stderr’ was not declared in this scope | thbezier.cxx:1206: error: ‘fprintf’ was not declared in this scope | make: *** [thbezier.o] Fehler 1 ...and, ah well, stderror and fprintf has a smell I know, so to say. So I opened thbezier.cxx and insterted to the include lines | #include "stdio.h" and it compiles through (at least thbezier.cxx). But this is... a bit too easy.
By the way, same thin with "memset" in thwarppt.cxx... could this be connected with the new gcc version 4.3.0 I am using? Should I better fall back to an older gcc version? Greetings, Christian
Am Dienstag, 20. November 2007 schrieb Christian Rößler (Roessler):
| thbezier.cxx:1205: error: ‘stderr’ was not declared in this scope | thbezier.cxx:1206: error: ‘fprintf’ was not declared in this scope | make: *** [thbezier.o] Fehler 1 By the way, same thin with "memset" in thwarppt.cxx...
Just for the record, as perhaps others are having this problem too: I inserted the line | #include "stdio.h" into thbezier.cxx, and the lines | #include <stdio.h> | #include <string.h> into thwarppt.cxx (string.h perhaps not necessary; I inserted it just to be on the safe side). Then therion compiled finely, and xtherion too. What a very nice feeling to see therion 0.5.2 starting:). Also for the record: The system here is an OpenSuse 10.3 with gcc 4.3.0, and self-compiled vtk 5.0.4 on an x86_64. If anyone runs into problems perhaps with vtk I will be glad to help. So, after all these dumb compiling questions I will (most likely) follow up with dumb therion usage questions! Very pleased greetings, Christian -- Have a look at our little home mine: <http://silberbergwerk-suggental.de>
Thanks a lot for pointing out - I will add these includes. It is probably due to newer compiler version, but it does not make sense to use older versions. On my linux machine, compilation generates huge amount of warnings, that also sooner or later should be fixed. Regards, S. Quoting "Christian RöÃler (Roessler)" <chr_rossi@kartan.de>:
Am Dienstag, 20. November 2007 schrieb Christian RöÃler (Roessler):
| thbezier.cxx:1205: error: âstderrâ was not declared in this scope | thbezier.cxx:1206: error: âfprintfâ was not declared in this scope | make: *** [thbezier.o] Fehler 1 By the way, same thin with "memset" in thwarppt.cxx...
Just for the record, as perhaps others are having this problem too:
I inserted the line | #include "stdio.h" into thbezier.cxx, and the lines
| #include <stdio.h> | #include <string.h> into thwarppt.cxx (string.h perhaps not necessary; I inserted it just to be on the safe side).
Then therion compiled finely, and xtherion too. What a very nice feeling to see therion 0.5.2 starting:).
Also for the record: The system here is an OpenSuse 10.3 with gcc 4.3.0, and self-compiled vtk 5.0.4 on an x86_64. If anyone runs into problems perhaps with vtk I will be glad to help.
So, after all these dumb compiling questions I will (most likely) follow up with dumb therion usage questions!
Very pleased greetings, Christian
-- Have a look at our little home mine: <http://silberbergwerk-suggental.de> _______________________________________________ Therion mailing list Therion@speleo.sk http://www.speleo.sk/mailman/listinfo/therion
participants (2)
-
Christian Rößler (Roessler) -
Stacho Mudrak