> These lines are likely bogus: > > > name_of_project_DEPENDENCIES = ./src/libsrc.a lib_file2.a lib_file3.a > > name_of_project_LDADD = ./src/libsrc.a -llib_file1.a lib_file2.a lib_file3.a > > They probably should be: > > name_of_project_DEPENDENCIES = ./src/libsrc.a ./lib_folder/lib_file1.a > ./lib_folder/lib_file2.a ./lib_folder/lib_file3.a > name_of_project_LDADD = ./src/libsrc.a ./lib_folder/lib_file1.a > ./lib_folder/lib_file2.a ./lib_folder/lib_file3.a
I tried doing the stuff but then gmake is not able to find the libs during make(though the compilation and linking happens normally...) My problem is "how to pass multiple .a files to a project"?? I have passed the dir_path as a compiler flag as -Ldir_path then I'm trying to pass the lib file names as -llibfile1.a -llibfile2.a... It is then not able to access then entire string of files. If I remove the prefix -l from the last file, it starts throwing the error "no rule to build target" for the last file. Also, the .a files have a "lib" prefix such as libfilename.a. So I tried passing the name as -lfilename.a but this also worked in the same manner as described above. _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus