|| | |||Browse by category|
I am having problems compiling .c files in the rogue/mathsrc directory that came with Math.h++.
Certain operating system vendors provide a free C compiler with the operating system. Usually this is an older, outdated C compiler.
A default rule for C files is usually also provided by the make utility itself.
The Rogue Wave makefile in the mathsrc directory does not provide its own rule for C compilations. Thus, you get the default system-provided rule for C files in the makefile. If your C compiler has a name other than cc, or if the intended compiler comes later in your PATH than a non-intended compiler, the intended compiler will not be called.
Add .c to the list of SUFFIXES in the makefile
Now add a rule at the bottom of the makefile:.SUFFIXES: .c .cpp .C .cc .cxx .o
Where clcc is the name of the CenterLine C compiler..c.o:
clcc -c $(CFLAGS) $(SPECIAL) $<
Another example is:
Where /package/1/sun.compilers/C++3.0.1/cc is an optional SunPro C compiler..c.o:
/package/1/sun.compilers/C++3.0.1/cc -c $(CFLAGS) $<
This should allow your library to build successfully.