Solved

How to port  C code from Vx works operating system to unix?

Posted on 2006-11-03
2
201 Views
Last Modified: 2010-04-15
I want to port a part of C code from Vxworks operatingsystem to Unix OS,but when I am trying do that,it dosen't compile
because it throws an error with the symbol table not found or inappropriate symbol table.How do I make my own symbol table or is there any other way where I can complie my code or make changes with the existing symblo table code.

Also, tell me where can I find the documents for building the symblo table code on the web?

A prompt response is highly appreciated.


 
0
Comment
Question by:tatikor_143
2 Comments
 
LVL 45

Accepted Solution

by:
Kdo earned 250 total points
ID: 17869509

"Symbol table not found" sounds more like a loader error than a compiler error.  I suspect that you're trying to link a file that's not a library.

Start with the basics.  Can you compile without linking?


   cc -c source.c


Kent
0
 
LVL 15

Expert Comment

by:bpmurray
ID: 17870645
This isn't a compiler problem, but rather a linker problem. You're using a library (or a .a or .o or a .obj file) from another platform (Vxworks perhaps?), and trying to combine this with your code.

The solution is to only use the .c files from the vxworks project, and use whatever is available on the Unix OS (is it real Unix or Linux or what?).
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question