Author Topic: Error!!  (Read 3592 times)

Offline vivek

  • Single posting newcomer
  • *
  • Posts: 2
Error!!
« 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

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Error!!
« Reply #1 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....
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.

Offline vivek

  • Single posting newcomer
  • *
  • Posts: 2
Re: Error!!
« Reply #2 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Error!!
« Reply #3 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Error!!
« Reply #4 on: September 07, 2010, 04:31:56 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!]