User forums > Using Code::Blocks

Error!!

(1/1)

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....

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

--- End quote ---

--- 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.

--- End quote ---
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.

oBFusCATed:

--- Quote from: vivek on September 07, 2010, 04:17:18 pm ---8.02 (unknown date)

--- End quote ---
In fact the date is known:) 2008.02.xx

Navigation

[0] Message Index

Go to full version