Solved

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

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

Integrate social media with email signatures

Is your company active on social media? Do you also use email signatures? Including social media icons in your email signature is a great way to get fans for free. Let all your email users know you’re on social media quickly and easily, in a single click.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Retrun object in plist format 5 54
How to update multiple binary circular files in C 3 223
Concatenate two strings Last and First Name 10 59
Handling string inputs in C/Linux 23 179
Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
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…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

911 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

20 Experts available now in Live!

Get 1:1 Help Now