From: Sven Eschenberg <eschenb@cs.uni-frankfurt.de>
To: Marshall Wood <donkieonthehead@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: compile issue - newbie
Date: Thu, 20 Apr 2006 13:26:00 -0000 [thread overview]
Message-ID: <44478C12.9080704@cs.uni-frankfurt.de> (raw)
In-Reply-To: <8058fd5f0604200622v5ee1fcefmf1a94c40230b2de@mail.gmail.com>
I'd say there is some include file missing, which commqand are you issuing?
Are you using gcc or g++ ?
Looks like gcc, i'd assume ...
-Sven
Marshall Wood wrote:
>I will state for a fact that I know that its something I am doing wrong.
>
>Now can someone help me correct it. Yes I am a newbie and just
>learning, I learn by doing and then asking or finding the answers to
>what I have done wrong.
>
>Here is my little script.
>
>#include <stdio.h>
>#include <stdlib.h>
>#include <iodbcunix.h>
>
>int main()
>{
> SQLRETURN retcode;
> retcode = SQLConnect (NULL, "SYSDTS", NULL, "user", NULL, "pass", NULL);
> if (retcode == SQL_SUCCESS || retcode == SQL_SUCCESS_WITH_INFO) {
> printf("Works!\n");
> }
>
>}
>
>Here is what I am seeing when I compile.
>
>odbc2.cpp: In function 'int main()':
>odbc2.cpp:7: error: 'SQLRETURN' was not declared in this scope
>odbc2.cpp:7: error: expected `;' before ‘retcode’
>odbc2.cpp:8: error: ‘retcode’ was not declared in this scope
>odbc2.cpp:8: error: ‘SQLConnect’ was not declared in this scope
>odbc2.cpp:9: error: ‘SQL_SUCCESS’ was not declared in this scope
>odbc2.cpp:9: error: ‘SQL_SUCCESS_WITH_INFO’ was not declared in this scope
>
>btw this is linux not windoze.
>
>
next prev parent reply other threads:[~2006-04-20 13:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-20 13:23 Marshall Wood
2006-04-20 13:26 ` Sven Eschenberg [this message]
[not found] ` <8058fd5f0604200653u73cfcce8xd1e85d017203973f@mail.gmail.com>
[not found] ` <44479375.4040700@cs.uni-frankfurt.de>
2006-04-20 14:07 ` Marshall Wood
[not found] ` <4447967D.2030408@cs.uni-frankfurt.de>
2006-04-20 14:51 ` Marshall Wood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44478C12.9080704@cs.uni-frankfurt.de \
--to=eschenb@cs.uni-frankfurt.de \
--cc=donkieonthehead@gmail.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).