help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gmake error: No rule to make target lib_file.a


From: D3|\||\|!$
Subject: Re: gmake error: No rule to make target lib_file.a
Date: Tue, 6 May 2008 06:16:11 -0700 (PDT)
User-agent: G2/1.0

> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]