Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-06

about a last cprt21.as change

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sergey Korshunoff

about cprt21.as last change
Отправитель: Sergey Korshunoff
Получатель:
Дата: Mon, 3 Jun 2002 05:21:03 +0400

Hi!
Look the LOG:

# $Log: cprt21.as,v $
# Revision 1.4  2001/06/04 18:05:47  peter
#   * use own dummy for _init and _fini
#

Question is: Why????
This change make it impossible to use from a fpc main program a library (*.so) made by c++ (init code in library is not called)

In attachment  is a tar with diff's and tests for linking fpc programs and libs.

One patch (how to mark a PASCALMAIN symbol as .hidden) may be not a good solution but it works (currently a fpc made main program cannot use a fpc made library -- init code in library is not called).

Regards,
        Sergey Korshunoff

Peter Vreman
Show quoted text 23 lines
about cprt21.as last change �����������: Sergey Korshunoff ����������: ����: Mon, 3 Jun 2002 05:21:03 +0400 Hi! Look the LOG: # $Log: cprt21.as,v $ # Revision 1.4 �2001/06/04 18:05:47 �peter # � * use own dummy for _init and _fini # Question is: Why???? This change make it impossible to use from a fpc main program a library (*.so) made by c++ (init code in library is not called) In attachment �is a tar with diff's and tests for linking fpc programs and libs. One patch (how to mark a PASCALMAIN symbol as .hidden) may be not a good solution but it works (currently a fpc made main program

canno> t

use a fpc made library -- init code in library is not called).

IIRC The problem was that crtbegin.o could not always be found