Solved

problem linking with m68k-palmos-gcc

Posted on 2004-10-15
2
539 Views
Last Modified: 2013-12-27
Hello. I´m working on W2000 using cygwin.dll to compile with m68k-palmos-gcc. I had a problem because i had to use the ScanMgr library and that library provided with CodeWarrior is a .lib library and i didn't can link it.
Someone here (i forget his name) give me the libScanMgr.a library but i tried to compile with it using options -L and -l to set the complete path and the library file and every command that i try tells me:

/prc-tools/H-i586-cygwin32/m68k-palmos/bin/ld: cannot open -llibScanMgr.a: No such file or directory

or give me the complete list of undefined references like

C:\DOCUME~1\Martin\CONFIG~1\Temp/ccyt5xaY.o(.text+0x2ae):pscanner.cpp: undefined reference to `ScanIsPalmSymbolUnit(void)'

Can anybody tell me the exactly command that can link libScanMgr.a. ?
Remember that i tried the typical -L and -l options in conjunction.
Thanks
0
Comment
Question by:martin11_ar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Expert Comment

by:vadim_ti
ID: 12330288
m68k-palmos-gcc -o 1.o 2.o ... n.o Symbol/lib/libScanMgr.a
0
 
LVL 3

Accepted Solution

by:
olan75 earned 125 total points
ID: 12466702
Remember that gcc changes the name that you give on the command line:
for example -lFoo will cause gcc to link with libFoo.a

So assuming your lib is in the same directory as your object files, the
link line should have : -lScanMgr and NOT -llibScanMgr

However, you do not need the -l option.
You can link with a library by adding it directly to the command line as if it were another .o file

For instance:

m68k-palmos-gcc foo.o bar.o libScanMgr.a

would work (add other options to your liking). gcc looks at the extension and does the right thing.

This is better because that way you can specify
exactly THE lib you want, instead of relying on a path (a path is dangerous because you could
have several libs with the same name along the path, so you have to worry about
which one is first in the path...) .

If none of the above works then post your link line and explain your directory structure.

HTH
olan75

0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question