Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

muliti-dimentional arrays

Intel_C_Intel
Employee
374 Views
hi...

i have a couple of functions
ie

Subroutine mySubroutine (x,y,a,b,c)
.
.
stuff
.
.
end

and i call then with one of the arguments as a 2d array, and it tells me that there are a different number a paramaters....

ie..
call mySubroutine (l, m, n(i,j), o, p)
this is causing a linker error, but only a warning when i compile the .for file by itself....
any help...

thanks..
annex
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
374 Views
The line you send looks OK -- but the problem is in another call in the same source file. When compiling, the compiler sees that mySubroutine is called with different number of actual arguments, but it doesn't know which is the right call, so it points you to one of lines. Only the linker later "sees" the definition of mySubroutine so it gives you "unresolved external symbol" error -- but unfortunately linker doesn't know in which line, so you'll have to find it yourself.

Jugoslav
0 Kudos
Reply