Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: sunrise07 on July 15, 2014, 08:28:17 pm

Title: how do i compile, link objects, and run this program
Post by: sunrise07 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
Title: Re: how do i compile, link objects, and run this program
Post by: sunrise07 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)
Title: Re: how do i compile, link objects, and run this program
Post by: oBFusCATed 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.
Title: Re: how do i compile, link objects, and run this program
Post by: sunrise07 on July 15, 2014, 09:23:51 pm
the .o file is downloaded from umbc and it's not created by codeblocks
Title: Re: how do i compile, link objects, and run this program
Post by: oBFusCATed on July 15, 2014, 09:31:15 pm
Codeblocks is not a compiles, so it cannot create it anyway...