Forum Discussion
Altera_Forum
Honored Contributor
8 years agoHey thanks!
I should stated that I was working under linux!. I was reading the altera documentation for HWLIB and SoCAL APIs without success. This is a simple starting program with a strange error:#include <stdio.h>
# include "hwlib.h"
# include "alt_interrupt.h"
int main() {
ALT_STATUS_CODE status;
status = alt_int_global_init();
if(status == ALT_E_SUCCESS) printf("exito...");
return 0;
} I got this error: main.o: In function `main':
C:\Users\nhasbun\Desktop\C/main.c:7: undefined reference to `alt_int_global_init I guess it's a linker problem on my makefile ?