Hi guys...
Im trying to compile a program written in C..
I am able to compile it to X86, especifically Ubuntu..
But i cant compile it to mips ar71xx architecture..
im using mips-linux-uclibc-gcc cross compiler.
i get this error when compiling on uclibc
the line 196 correspond to the first pthread_exit() funtion that appears in the code.
Im not very familiar with C programming..
I also waas reading the pthread_exit() usage and i could not clear my doubts..
Well, in fact i did.. I putted NULL value to the funtion pthread_exit() and it compiled OK
But, when I execute the program it bahaves in a wrong way...
For example: that code upside, correspond to the Log In of the client to the server.
It start the server. Until that point it's OK
Then when a user want to Log in, it rejects all connections, the logic has change..
So, the point think. How could I know how the ubuntu compiler deal with this part?
I mean, what the ubuntu compiler does when it has to compile it? It ommit it? Add a predefined value? Just Ignore?
I tried to see the ubuntu compiler debug, but what i see I did not understand..
The only way to see what is really going on is to look what assembly code is generated by g++ and then use a debugger to step though the code. You can use the gcc/g++ -S option to output assembly code.
hi,
i need to compile a proc program, say prog.pc
can we compile this program in the unix environment? does this need a make file? can anyone help me on this since i am new to this area.
Thanks in advance. (1 Reply)
(gdb) r --------------------- enter
Breakpoint 1, 0x0000000000409d40 in main ()
(gdb) n
Single stepping until exit from function main,
which has no line number information.
Find_Cmd_Option: found option no. 2: seed (s)
Find_Cmd_Option: found option no. 5: dfile (c)
Initial no. div... (1 Reply)
Hi All,
We have a C program existing in one of the folders which I have to modify a lil bit, When I'm trying to compile the program using GCC or CC command its showing as
ksh: gcc: not found
is that mean there is no compiler or do I have to verify for something, please advice
Thank... (2 Replies)
Hi,
i want to write a script that executes a program (exec?) .
this program then requires a filename as input.
how do i give it this input in the script so the program will be complete run and close by the script.
e.g.
exec prog.exe
program then asks for filename
"enter filename:"... (1 Reply)
Hi,
I'm new to HP-Unix programming; I have a few programs, don't know the programming language used. I have to make minor changes and to recompile the source code. How do I find the programming language used and the compiler?
Thanks,
Nick. (3 Replies)
I have re-compiled kernel source code available in /usr/src/linux.2.4.20 with "make" command. The compilation is succesful.
Now the problem is create the image for this. The documentation in the same folder says that now you have compile "make image". There is no option for image in Makefile. ... (3 Replies)
Hi,
While trying compile a C++ file in UNIX with gcc whose make rule involves the usage of
/usr/ccs/bin/as, I get the following error:
/usr/ccs/bin/as: No such file or directory
/usr/ccs/bin/as: error: write error on output file "<filename>.o"
*** Error code 1
clearmake: Error: Build... (2 Replies)