[Anjuta-list] Incorrect symlinks when creating library



This may be wordy, but I'm trying to give as much
information as possible.  Here goes...

When I created a new project with Anjuta, I configured
it as a 'Generic Terminal Project' and specified
'Dynamic library target' as the target type.

My project directory structure is:
~/Projects/Project-Name
~/Projects/Project-Name/doc
~/Projects/Project-Name/include
~/Projects/Project-Name/src
~/Projects/Project-Name/src/mydir1
~/Projects/Project-Name/src/mydir1/afile.c
~/Projects/Project-Name/src/mydir2
~/Projects/Project-Name/src/mydir2/bfile.c
~/Projects/Project-Name/src/mydir3
~/Projects/Project-Name/src/mydir3/cfile.c
etc...

The first thing I did to compile my dynamic library
was go to Build->Configure, then Build->Build All.

It goes through and compiles all my source code just
fine, but spits out warnings like:
Makefile:328: warning: undefined variable
`AM_CPPFLAGS'
Makefile:328: warning: undefined variable `AM_CFLAGS'
Makefile:328: warning: undefined variable
`AM_CPPFLAGS'
Makefile:328: warning: undefined variable `AM_CFLAGS'

Now, after everything is compiled into .o's and .lo's,
it attempts this:

/bin/sh ../libtool --mode=link gcc  -Wall -Wimplicit
-Wreturn-type -Wunused -Wswitch -Wcomment
-Wuninitialized -Wparentheses -Wpointer-arith
-Wmissing-prototypes - O3 -g  -o libcool.la -rpath
/usr/local/lib  file/common.lo util/fcn_utility.lo
util/file_utility.lo util/parse/parse.lo
util/queue/elem_accessor.lo util/queue/
insert_queue_elem.lo util/queue/queue_accessor.lo
util/queue/remove_queue_elem.lo crypto/blowfish.lo
network/spawn.lo network/tail.lo util/ queue/fstate.lo
network/tbuf.lo process/process_cleanup.lo
process/process_recstream.lo process/process_queue.lo
process/util.lo network/util.lo network/protocol.lo
network/protoutil.lo process/messages.lo
util/parse/disk.lo process/process_msgdir.lo
process/process_message.lo process/process_xfer.lo

The problem is, all of those .o's and .lo's aren't in
their respective subdirectories; they're all in the
base src/ directory (as opposed to src/process/,
src/network, src/util, etc).  Instead, each of my
subdirectories now contain broken symlinks.

An example of what I mean.
process_xfer.o and process_xfer.lo are in src/, but I
would think they SHOULD be at
src/process/process_xfer.o and
src/process/process_xfer.lo.

The process directory has a broken symlink like the
following (ln -s src/process/process_xfer.o
src/process/process_xfer.lo)
As you can see, the real .o is in the directory below,
not in the same directory, thus it is a broken
symlink.

Any way I can prevent from having to go in and
manually fix all of those symlinks?  I'd like to
simply press the Build -> Build All button and be
done.

Thank you in advance.

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com




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