Forum Discussion
Altera_Forum
Honored Contributor
20 years agonios2-elf-ld -Ur
hello!
my nios2 system have a problem. the complier can't find the errror when I use a inexistent function,for example: main() { aa(); } aa is not exsist. when the complier link the object files, it can't find any error. I find I use "-Ur" as a one of the parameters of nios2-elf-ld command. if I delete it, the complier will find the error. I get the meaning of "-Ur"" from nios2-elf-ld --help the meaning is "build global constructor/destructor tables" but I can't understand it.Can you tell me more? Thank you.3 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by smalllight@Jun 28 2006, 03:54 AM hello!my nios2 system have a problem. the complier can't find the errror when i use a inexistent function,for example:
main()
{
aa();
}
aa is not exsist.
when the complier link the object files, it can't find any error.
i find i use "-ur" as a one of the parameters of nios2-elf-ld command.
if i delete it, the complier will find the error.
i get the meaning of "-ur"" from nios2-elf-ld --help
the meaning is "build global constructor/destructor tables"
but i can't understand it.can you tell me more?
thank you.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16462)
--- quote end ---
--- Quote End --- is -Wall in your CFLAGS?
- Altera_Forum
Honored Contributor
--- Quote End --- is -Wall in your CFLAGS? <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16465)</div> --- Quote End --- yes,there are -wall in my CFLAGS,so complier can caution me a warning. but I think this is a error,I can't accept a waring - Altera_Forum
Honored Contributor
what does mean "build global constructor/destructor tables"?
what is a constructor/destructor tables?