News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Error!!

Started by vivek, September 07, 2010, 12:57:50 PM

Previous topic - Next topic

vivek

I am a newbie. I just installed codeblocks. I tried to run a simple C program.

When I tried to build and run the program, I got the following error.


-------------- Build: Debug in 1 ---------------

Linking console executable: bin/Debug/1
/usr/bin/ld: cannot find -lodbc32
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings

Could someone please tell me how to debug this?

Thanks

ollydbg

Don't multiply post!!!
Search the forum first, and at least you should tell more other information about your system(version), cb(version), full log....
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

vivek

I am using Ubuntu 9.10, CB version : 8.02 (unknown date) gcc 4.4.1 Linux/unicode.

MortenMacFly

Quote from: vivek on September 07, 2010, 12:57:50 PM
/usr/bin/ld: cannot find -lodbc32
Quote from: vivek on September 07, 2010, 04:17:18 PM
I am using Ubuntu 9.10, CB version : 8.02 (unknown date) gcc 4.4.1 Linux/unicode.
You are trying to compile a Windows program on Linux. On Linux, you won't find ODBC support easily. You either need to port your application to Linux or use a different SDK / layer.

Topic locked, as it is not related to Code::Blocks and violates our forum rules therefore.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Quote from: vivek on September 07, 2010, 04:17:18 PM
8.02 (unknown date)
In fact the date is known:) 2008.02.xx
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]