i have a program :
this program was compiled and work with another compiler and another architecture, now i use PGCC and i have some problrme with memory
that how the message that i get
PGC-S-0058-Illegal lvalue (n.c: 394)
and
PGC-S-0058-Illegal lvalue (n.c: 518)
PGC-W-0095-Type cast required for this conversion (n.c: 518)
oh i have a 4 procesor “AMD optheron” 64 bit ant i try
-tp=and64 and i try k8-64
i dont know the reason to this messages
o yeah i can show you how i or they “it’s not my program” declare and use of arrays per haps you this can help you to help me …:-))
Try reviewing the post processed error lines since macros can be difficult to decipher. To do this, add “-P” to your compilation of “n.c”. This instructs the compiler driver to stop after the preprocessing phase and output the results to a “.i” file. Next, compile again substituting “n.i” for “n.c” and remove “-P”.
The same errors should occur, but at different line numbers. However now it should be more evident what the problem is since the code won’t be obfuscated by the macros.
If you are still are having trouble, please post the post processed lines (from the n.i file) where the errors occur as well as the definitions of the left hand variables like “p_ex”.
yes the same ereurs are occured, but it’s just this kind of erreurs.
, i will try -p.
that the the defenition of p_ex:
real …,*p_ex;
do you think that a version of pgcc could be the reason “pgcc 6.0-5 64-bit”?.
thank’s again and i will inform you the result . …:-)
Where are “PML_HY” and “PML_HZ” defined? They’re either macros or functions. If they are macros, you need to find their definitions. If they’re functions, then this is illegal code since you can’t assign a value to a function.
i get this code with -P then i theh i think that are not a macros “define”, i dont know how the program know : it’s not declared "but it’s not important to me because i get no error ", that’s the declaration in *.h file
You should consider contacting the authors of this code since defining a macro to itself doesn’t make a lot sense. Perhaps your missing a configuration step?
And if you have any document about advaced gestion of memory, it’s be welcome
Sorry, but I’m not sure what type of documentation your looking for? Can you be more specific.