Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

compiling error message

Posted on 2000-03-24
2
Medium Priority
?
222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
rbr earned 45 total points
ID: 2652554
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
ID: 2652577
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
Suggested Courses

604 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