[freetds] FreeTDS Dev-C++ compilation error?
James K. Lowden
jklowden at freetds.org
Thu Mar 5 10:35:38 EST 2009
Gal Rubinstein wrote:
>
> since I'm noobie to C++ (coming from Java), but what I can see from the
> compile is the missing of a few header files.
I suspect the general answer is RTFM for DevC++ or gcc? :-)
If you really don't have the header files, you must be using a package of
some sort, and you might need the associated devel package or somesuch.
If you have the header files but gcc doesn't find them, you have to tell
it where they are. A quick look at win32/dev-cpp/FreeTDS.dev:
$ grep / FreeTDS.dev |head
Includes=..;../../include
Linker=-lws2_32 -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32
-ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32_@@_-s
--def ../FreeTds.def_@@_-Wl,--enable-stdcall-fixup_@@_
shows the only paths are local. The preprocessor (cpp(1)) needs to be
told where to look for .h files (the #include statements). It has a
couple of built-in places
$ printf '' | cpp -v
...
/usr/bin/../libexec/cc1 -E -quiet -v -iprefix /usr/bin/../libexec/
-D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3 -
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/include
End of search list.
it looks in, depending on how gcc itself was built. Otherwise it depends
on its environment and invocation.
HTH.
--jkl
More information about the FreeTDS
mailing list