Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: vivek on September 07, 2010, 12:57:50 pm

Title: Error!!
Post by: vivek on September 07, 2010, 12:57:50 pm
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
Title: Re: Error!!
Post by: ollydbg on September 07, 2010, 03:55:35 pm
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....
Title: Re: Error!!
Post by: 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.
Title: Re: Error!!
Post by: MortenMacFly on September 07, 2010, 04:30:51 pm
/usr/bin/ld: cannot find -lodbc32
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.
Title: Re: Error!!
Post by: oBFusCATed on September 07, 2010, 04:31:56 pm
8.02 (unknown date)
In fact the date is known:) 2008.02.xx