Renesas TM V.3.20A Especificaciones Pagina 73

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 762
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 72
Renesas Technology, Tools FAQs
Last Updated: August 25, 2000
Document Number: 01051250_e
Q.
When I do a Build, the following error is displayed:
samp.c 190 Error (ln30):.\samp.r30:'$func1' value is undefined
Normally, when there is no reference function, a function with "_", as in "_func1", is displayed. Why is this one displayed with "$"?
The func1 function exists in a different file.
A.
NC30WA has two types of methods for naming functions:
Add "_" to the start of the function name.1.
Add "$" to the start of the function name.2.
[The differences between "_" and "$"]
"_" indicates that there is no function argument or that all arguments are passed by the stack.
"$" indicates that at least one function argument is passed by a register. (In NC30WA, one of the conditions for a function
argument to be passed by a register is that the function has a prototype declaration.)
[Speculated cause of error message]
Probably you are calling func1 using "$func1", but the actual name is "_func1". If this is the case, the prototype is declared in the
calling side, but not declared in the function side. Please make sure the function side has a prototype declaration.
[How to confirm a prototype declaration]
By specifying options -WNP or -Wall during the compile, a warning will be issued for any function that does not have a prototype
declaration.
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Vista de pagina 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 761 762

Comentarios a estos manuales

Sin comentarios