Solved

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

Posted on 2006-11-03
2
182 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand recursion 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.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now