Author Topic: how do i compile, link objects, and run this program  (Read 3813 times)

Offline sunrise07

  • Single posting newcomer
  • *
  • Posts: 3
how do i compile, link objects, and run this program
« on: July 15, 2014, 08:28:17 pm »
it is a C program
the program project 4 is here:
http://www.csee.umbc.edu/courses/undergraduate/201/fall07/projects/p4/

i would have to download stringtoll.o and stringtoll.h,
i have palindrome.h and palindrone.c
i have proj4.c

i don't know how to link the stringtoll.o into the program
i would try doing this: click build + run, it gives me errors

Offline sunrise07

  • Single posting newcomer
  • *
  • Posts: 3
Re: how do i compile, link objects, and run this program
« Reply #1 on: July 15, 2014, 08:54:40 pm »
used to be able to run this program from linux terminal. now i am trying to run it in codeblocks (windows 7)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: how do i compile, link objects, and run this program
« Reply #2 on: July 15, 2014, 09:04:12 pm »
Are you sure this .o file is generated with the same compiler on the same OS you're using?
If not then it won't work.
(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!]

Offline sunrise07

  • Single posting newcomer
  • *
  • Posts: 3
Re: how do i compile, link objects, and run this program
« Reply #3 on: July 15, 2014, 09:23:51 pm »
the .o file is downloaded from umbc and it's not created by codeblocks

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: how do i compile, link objects, and run this program
« Reply #4 on: July 15, 2014, 09:31:15 pm »
Codeblocks is not a compiles, so it cannot create it anyway...
(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!]