User forums > Help
problem in compiling an application source file with C:B
McZim:
run application with valgrind. Example: valgrind ./bla-bla
and see what problem, which string in source code.
parisa_k:
here I exactly explaind my problem::
I have uploaded the sorce file here (it`s iozone (a filesystem benchmark) source code with some changes....
http://rapidshare.com/files/140436058/ii.tgz.html
you can make its executable file by using this command it terminal (in files path)
make linux
then you see it runs correctly....
--------------------
but now I want to do the same thing with C::B
I start a new project> console application
then I add the source files to it ....and set defines and libraries (by looking at make file) to it ....
libraries: pthread , rt
defines:
NAME = "linux"
unix
linux
HAVE_ANSIC_C
ASYNC_IO
_LARGEFILE64_SOURCE
SHARED_MEM
HAVE_PREAD
I expect that when I run this project, the executable file become created....
but it doesn`t happen (perhaps because of some problems)...I want to know what is the problem and how to solve it (maybe the problem is with the way that I used)
I would be thankful if anyone can help
thanks
McZim:
how you call functions from "main" function.
parisa_k:
I just added the .c files to the project and then run it ... no change in main.c....does it need to be called and how?
does it solve the problem?
parisa_k:
I also removed the main.c from the project ...I think it can find the main() in iozone.c and will use it as the main function
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version