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

INCLUDE statements

Intel_C_Intel
Employee
405 Views
Hallo, I have the problem that the compiler compiles *.h-files,which I have listed in "External Dependencies".

C:CPCADGY3adgy.tarfhi96mdsrcfhi96mdcommon1.h(6) : Error: This name does not have a type, and must have an explicit type. [NKPTX]
complex*8 c0(ngwx,nx,nkptx)
------------------------------^

The "Delete-menu" for the files under "External Dependencies" does not work but does work for "Source Files" and "Header Files"

Lasse Karagiannis
0 Kudos
1 Reply
Steven_L_Intel1
Employee
405 Views
I don't see any evidence that the compiler is compiling a .h file directly - indeed, it would be very difficult for that to happen because .h is not one of the file types Developer Studio thinks is a Fortran file.

My guess is that this error is occurring during compilation of a regular source file that includes common1.h You should be able to find the problem quickly.

Steve
0 Kudos
Reply