Re: Sound/Music for Scheme




"Bill Schottstaedt" wrote (per email):
I looked at the config logs and didn't see anything problematic. I think you need to add -lc to the LIBS list at the top of the makefile, but I'm just guessing -- I don't have any info about cygwin libraries. Perhaps the other person who responded on the scheme newsgroup would know what to try.

Thanks for your reply. I did what you have suggested and added -lc in the makefile (with the cygwin environment, using the cygwin compiler/libraries).
This solved most of the "undefined reference" warnings. :)


Still I get the following messages:

### 1)
Info: resolving _scm_freelist by linking to __imp__scm_freelist (auto-import)
(again the same with: _scm_master_freelist and _scm_tc16_keyword)


### 2)
ld: warning: cannot find entry symbol _mainCRTStartup; defaulting to 00401000


### 3)
headers.o(.text+0x408): In function 'mus_bytes_to_samples':
/home/.../sndlib/headers.c:399: undefined reference to '__divdi3'
(again the same with some other 'mus_...' functions)

As I know, 1) and 2) are not to matter. The former is only an info and the latter can also be ignored. But 3), the undefined reference to '__divdi3' is the reason for the linker to not link correctly (I guess).
__divdi3 is defined in libgcc.a. Fine. But why can't the linker find it? It's there. I tried to set the path to this library with -L and -l but without success.


What else could I try?

Thanks for your help and best regards,
Lukas


.



Relevant Pages

  • Re: question about installation of GD::Text on cygwin (could be a Makefile q)
    ... I am trying to install a few modules with an ... > environment of Cygwin w/ windows 2000. ... > Went to cygwin to download latest and greatest code, ... > modules and this step builds a Makefile with those modules. ...
    (comp.lang.perl.misc)
  • Re: Impact 8.1 problems=> uClinux rules on MicroBlaze !!!
    ... Linux sees a difference between 'makefile' and 'Makefile' - windows can't. ... It can handle them to some extent, on some file systems on some forks of windows. ... Cygwin goes to a lot of effort to hide that sort of issue. ...
    (comp.arch.fpga)
  • Re: How to get make to work under Cygwin bash shell
    ... > I have a Makefile in the local directory and ran a ./configure script ... > When I look at my environment variables, ... but it sure sounds like you didn't install ... I'm sure cygwin has a mailing list or something. ...
    (comp.lang.c)
  • makefile question / problem
    ... I have a problem with a makefile ... Why does the linker gets executed after the compiling finished? ... [root@FedoraPC tftpboot]# make mcf_qspi ... m68k-elf-strip -g mcf_qspi.o ...
    (comp.os.linux.development.system)
  • arm-elf-gcc problem
    ... I'm a newbie regarding the GNU ARM stuff. ... linker script ... referenced in my linker script and defined in the startup code as ... Did I miss something in the makefile? ...
    (comp.arch.embedded)