Skip to Content.
Sympa Menu

freetds - Re: [freetds] FreeTDS Dev-C++ compilation error?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] FreeTDS Dev-C++ compilation error?
  • Date: Thu, 5 Mar 2009 10:35:38 -0500

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








Archive powered by MHonArc 2.6.24.

Top of Page