Solved

compiling error message

Posted on 2000-03-24
2
213 Views
Last Modified: 2010-04-15
I wrote a C program , But when compilgin the C program, I got a warning message 'Nonportable pointer conversion'

what this warning message means ?
how to fix it although I still can run the program
0
Comment
Question by:adrianmak
2 Comments
 
LVL 10

Accepted Solution

by:
rbr earned 15 total points
Comment Utility
You cast from different pointers which will not be portable to other OSs. Can you post the line pls where this error occurs
0
 

Expert Comment

by:wardkd
Comment Utility
This sounds like you have assumed either the size of some object, the order that objects are stored in, or that you have used a questionable cast from one type to another.

In any case, the compiler is telling you that in a different operating system, these assumtions may not be valid.

The fact that your program works in your current environment doesn't mean that it will run in another, which is what the warning is telling you.

I can't tell you how to fix this code without seeing it, but maybe the information above might help.

Cheers.

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
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 and use pointers 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.

763 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

8 Experts available now in Live!

Get 1:1 Help Now