Tool/software: Code Composer Studio
Hello,
I'm trying to get code to compile in CCS that uses that uses the GNU Scientific Library (using the GNU ARM compiler). It appears as though it's recognizing the library files that I've added to the compiler's lib directory and the header files that I've added to the include directory, as it doesn't flag any issues with my include statements. However, the console displays an error for each line that actually uses function defined in the library (for example, "undefined reference to 'gsl_matrix_view_array'"). The full output is below. Any help would be appreciated.
Regards,
Nathaniel
-------------------------------------------------------------
**** Build of configuration Debug for project MagNETTest2 ****
"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../main.c'
'Invoking: GNU Compiler'
"C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -c -I"C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -MMD -MP -MF"main.d" -MT"main.o" -o"main.o" "../main.c"
'Finished building: ../main.c'
' '
'Building target: MagNETTest2.out'
'Invoking: GNU Linker'
"C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -Wl,-Map,"MagNETTest2.map" -L"C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/lib" -o"MagNETTest2.out" "./main.o" -Wl,--start-group -lgsl -lgslcblas -lblas -lm -Wl,--end-group
makefile:144: recipe for target 'MagNETTest2.out' failed
./main.o: In function `control':
C:\Users\Nathaniel\workspace_v6_2\MagNETTest2\Debug/../main.c:20: undefined reference to `gsl_matrix_view_array'
C:\Users\Nathaniel\workspace_v6_2\MagNETTest2\Debug/../main.c:21: undefined reference to `gsl_matrix_view_array'
C:\Users\Nathaniel\workspace_v6_2\MagNETTest2\Debug/../main.c:22: undefined reference to `gsl_matrix_view_array'
C:\Users\Nathaniel\workspace_v6_2\MagNETTest2\Debug/../main.c:23: undefined reference to `gsl_matrix_view_array'
C:\Users\Nathaniel\workspace_v6_2\MagNETTest2\Debug/../main.c:24: undefined reference to `gsl_matrix_view_array'
./main.o:C:\Users\Nathaniel\workspace_v6_2\MagNETTest2\Debug/../main.c:25: more undefined references to `gsl_matrix_view_array' follow
./main.o: In function `control':
C:\Users\Nathaniel\workspace_v6_2\MagNETTest2\Debug/../main.c:28: undefined reference to `gsl_matrix_memcpy'
C:\Users\Nathaniel\workspace_v6_2\MagNETTest2\Debug/../main.c:30: undefined reference to `gsl_blas_dgemm'
C:\Users\Nathaniel\workspace_v6_2\MagNETTest2\Debug/../main.c:35: undefined reference to `gsl_blas_dgemm'
C:\Users\Nathaniel\workspace_v6_2\MagNETTest2\Debug/../main.c:38: undefined reference to `gsl_matrix_scale'
C:\Users\Nathaniel\workspace_v6_2\MagNETTest2\Debug/../main.c:39: undefined reference to `gsl_matrix_add'
C:\Users\Nathaniel\workspace_v6_2\MagNETTest2\Debug/../main.c:40: undefined reference to `gsl_matrix_memcpy'
./main.o: In function `findPos':
C:\Users\Nathaniel\workspace_v6_2\MagNETTest2\Debug/../main.c:53: undefined reference to `gsl_poly_solve_quadratic'
collect2.exe: error: ld returned 1 exit status
gmake: *** [MagNETTest2.out] Error 1
gmake: Target 'all' not remade because of errors.
**** Build Finished ****