[fpc-pascal] Undefined symbols on mac

2011-01-22 Thread Darius Blaszyk
Compiling my project results in a linker error on Mac. I couldn't find anything 
on google so perhaps someone can help me here.

I have pasted the error messages below. I'm using : Lazarus 0.9.31 r29068M FPC 
2.4.2 i386-darwin-carbon

Regards, Darius


Undefined symbols:
  _iconv_open, referenced from:
  _CWSTRING_INITTHREAD in cwstring.o
  _CWSTRING_INITTHREAD in cwstring.o
  _ICONVENC_ICONVERT$ANSISTRING$ANSISTRING$ANSISTRING$ANSISTRING$$LONGINT 
in iconvenc.o
  _iconv_open, referenced from: _CWSTRING_INITTHREAD in cwstring.o 
_CWSTRING_INITTHREAD in cwstring.o 
_ICONVENC_ICONVERT$ANSISTRING$ANSISTRING$ANSISTRING$ANSISTRING$$LONGINT in 
iconvenc.o
  _CWSTRING_WIDE2ANSIMOVE$PWIDECHAR$ANSISTRING$LONGINT in cwstring.o
  _CWSTRING_WIDE2ANSIMOVE$PWIDECHAR$ANSISTRING$LONGINT in cwstring.o
  _CWSTRING_ANSI2WIDEMOVE$PCHAR$WIDESTRING$LONGINT in cwstring.o
  _CWSTRING_ANSI2WIDEMOVE$PCHAR$WIDESTRING$LONGINT in cwstring.o
  _ICONVENC_ICONVERT$ANSISTRING$ANSISTRING$ANSISTRING$ANSISTRING$$LONGINT 
in iconvenc.o
  _ICONVENC_ICONVERT$ANSISTRING$ANSISTRING$ANSISTRING$ANSISTRING$$LONGINT 
in iconvenc.o
  _ICONVENC_ICONVERT$ANSISTRING$ANSISTRING$ANSISTRING$ANSISTRING$$LONGINT 
in iconvenc.o
  _iconv, referenced from: 
_CWSTRING_WIDE2ANSIMOVE$PWIDECHAR$ANSISTRING$LONGINT in cwstring.o 
_CWSTRING_WIDE2ANSIMOVE$PWIDECHAR$ANSISTRING$LONGINT in cwstring.o 
_CWSTRING_ANSI2WIDEMOVE$PCHAR$WIDESTRING$LONGINT in cwstring.o 
_CWSTRING_ANSI2WIDEMOVE$PCHAR$WIDESTRING$LONGINT in cwstring.o 
_ICONVENC_ICONVERT$ANSISTRING$ANSISTRING$ANSISTRING$ANSISTRING$$LONGINT in 
iconvenc.o 
_ICONVENC_ICONVERT$ANSISTRING$ANSISTRING$ANSISTRING$ANSISTRING$$LONGINT in 
iconvenc.o 
_ICONVENC_ICONVERT$ANSISTRING$ANSISTRING$ANSISTRING$ANSISTRING$$LONGINT in 
iconvenc.o
  _CWSTRING_FINITHREAD in cwstring.o
  _CWSTRING_FINITHREAD in cwstring.o
  _ICONVENC_ICONVERT$ANSISTRING$ANSISTRING$ANSISTRING$ANSISTRING$$LONGINT 
in iconvenc.o
ld: symbol(s) not found
An error occurred while linking 
Error: Error while linking

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Undefined symbols on mac

2011-01-22 Thread Darius Blaszyk
Hi Jonas,

You're right, I added the correct library and now it works! Thanks for that.

Regards, Darius


On Jan 22, 2011, at 12:22 PM, Jonas Maebe wrote:

 
 On 22 Jan 2011, at 11:06, Darius Blaszyk wrote:
 
 Compiling my project results in a linker error on Mac. I couldn't find 
 anything on google so perhaps someone can help me here.
 
 I have pasted the error messages below. I'm using : Lazarus 0.9.31 r29068M 
 FPC 2.4.2 i386-darwin-carbon
 
 Undefined symbols:
 _iconv_open, referenced from:
 
 My guess is that you are not linking against the system version of libiconv, 
 but against a version of that library compiled by a third party (fink, 
 macports, ...). That is not supported by the cwstring unit (and it's a good 
 thing that gives an error at link time, since the program would otherwise 
 fail to start on machines that do not have that custom version of libiconv 
 installed).
 
 I think you should be able to force the linker to pick the system version by 
 passing -k/usr/lib/libiconv.dylib on the command line. Alternatively, remove 
 the fink/macports/... directory from your linker search path (in case you 
 don't use any of its libraries).
 
 
 Jonas___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Basic instructions for quick start of free basic setup with subversion.

2011-01-22 Thread Peter Eric Williams

Hi pascal list,

Please excuse me asking such a basic question, but I'm new to this list.

I require the basic instructions for quick start with subversion for all 
of the free pascal compiler using subversion.


I am using Windows 7 Ultimate and I am new to Free Pascal and Lazarus.

I have previously used Linux Ubuntu and Mint 10 with stable version of 
free Pascal and Lazarus.


I am not wanting to use a pirate copy of Delphi XE and I am a supporter 
of free pascal and the GNU GPL 3 license.


I have been reading the Development Tutorial (a.k.a Build FAQ)

Copy and paste follows from the Dev. Tut. pdf file, section 1.3.3 (with 
my comments //). Please note the crap characters when I copy and pasted it.


1.3.3 Downloading source via SVN
„To c™he™k out a— module use the follow line:
svn co http://svn.freepascal.org/svn/module/trunk module
#
# Examples:
#
# FPC
# svn co http://svn.freepascal.org/svn/fpc/trunk fpc
#
# fpcdocs
#
svn co http://svn.freepascal.org/svn/fpcdocs/trunk fpcdocs
#
# fpcprojects (has no branches, maybe you don't need /trunk at the end)
#
svn co http://svn.freepascal.org/svn/fpcprojects/trunk fpcprojects
#
# lazarus
#
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus
„
o ™he™k out — ˜r—n™hD repl—™e trunk in the —˜ove lines 
with the ˜r—n™hesG`˜r—n™h n—mebF iFgF to ™he™k out the ˜r—n™h

(xes•P•RX

// to check out a branch replace trunk in the above lines with 
branches/branch name E.g. To checkout the branches_2.4



5 
\href{ftp://ftp.freepascal.org/pub/fpc/snapshot/v24/source/fpc.zip}{ftp://ftp.freepascal.org/pub/fpc/snapshot/v24/source/fpc.zip
6 
\href{ftp://ftp.freepascal.org/pub/fpc/snapshot/v25/source/fpc.zip}{ftp://ftp.freepascal.org/pub/fpc/snapshot/v25/source/fpc.zip

development series)}
(2.2.x)}
(2.5.x
CHAPTER 1.
BASE PRINCIPLES, NAMING, VERSIONS, REQUIREMENTS ETC
IQ
svn co http://svn.freepascal.org/svn/fpc/branches/fixes_2_4 fpc-2.4.x
ƒpe™i(™ rele—ses —re t—gged with — t—g th—t is form—ted like 
‚ivieƒi•P•R•H D —nd ™—n ˜e ™he™ked out like thisX

svn co http://svn.freepascal.org/svn/fpc/tags/RELEASE_2_4_0 fpc-2.4.0

Best Regards,
pew

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Basic instructions for quick start of free basic setup with subversion.

2011-01-22 Thread Andrew Haines
On 01/22/11 14:31, Peter Eric Williams wrote:
 Hi pascal list,
 
 Please excuse me asking such a basic question, but I'm new to this list.
 
 I require the basic instructions for quick start with subversion for all
 of the free pascal compiler using subversion.
 
 I am using Windows 7 Ultimate and I am new to Free Pascal and Lazarus.


you have the command right there

svn co http://svn.freepascal.org/svn/fpc/trunk fpc
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus

This will create a folder named fpc and lazarus in the working
directory of the cmd.exe prompt you have open.

If you are setting fpc up for the first time on this computer, you'll
need a starting compiler to compile the source you've just gotten.
Download the correct one from here:
ftp://ftp.freepascal.org/fpc/dist/2.4.2/bootstrap/

If you choose i386-win32-ppc386.zip then extracting that will give you
something like ppc386.exe

cd into the fpc folder and type PP=/path/to/ppc386.exe make all
install generally that will install fpc into c:\fpc. It's important to
use gnu make since others like the MS one or borlands are not compatible
with the makefiles fpc uses.

Anyway it's much easier to just install a snapshot from here:
http://www.hu.freepascal.org/lazarus/

Choose the Lazarus + fpc 2.4.2 win32 link. This should install a fpc
2.4.2 compiler and the latest svn version of lazarus.

Also this link has a lot of relevant information:
http://wiki.lazarus.freepascal.org/Getting_Lazarus

Regards,

Andrew

An overview of requirements:

1 and 2 must be in the PATH. unless you use variables to set them
(MAKE=c:\path\to\make.exe AS=c:\path\to\as.exe etc.)

1. Gnu Make
2. Possibly win32 binutils (as.exe ld.exe and some more)
3. Latest Release of FPC for the starting compiler (currently 2.4.2)
4. Fpc Source code, either from a zip file or gotten from subversion
(svn) (compile with a starting compiler from step 3)
5. Lazarus source code (compile with fpc created in step 4)

Further notes:

gnu make gets cranky in windows if you use a path with spaces in it.
That is why fpc and lazarus are generally installed to c:\fpc or
c:\lazarus instead of c:\program files\...
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Basic instructions for quick start of free basic setup with subversion.

2011-01-22 Thread Marcos Douglas
On Sat, Jan 22, 2011 at 5:31 PM, Peter Eric Williams
piffle.the@iinet.net.au wrote:
 Hi pascal list,

 Please excuse me asking such a basic question, but I'm new to this list.

 I require the basic instructions for quick start with subversion for all of
 the free pascal compiler using subversion.

 I am using Windows 7 Ultimate and I am new to Free Pascal and Lazarus.

 I have previously used Linux Ubuntu and Mint 10 with stable version of free
 Pascal and Lazarus.

 I am not wanting to use a pirate copy of Delphi XE and I am a supporter of
 free pascal and the GNU GPL 3 license.

 I have been reading the Development Tutorial (a.k.a Build FAQ)

 Copy and paste follows from the Dev. Tut. pdf file, section 1.3.3 (with my
 comments //). Please note the crap characters when I copy and pasted it.

 1.3.3 Downloading source via SVN
 „To c™he™k out a— module use the follow line:
 svn co http://svn.freepascal.org/svn/module/trunk module
 #
 # Examples:
 #
 # FPC
 # svn co http://svn.freepascal.org/svn/fpc/trunk fpc
 #
 # fpcdocs
 #
 svn co http://svn.freepascal.org/svn/fpcdocs/trunk fpcdocs
 #
 # fpcprojects (has no branches, maybe you don't need /trunk at the end)
 #
 svn co http://svn.freepascal.org/svn/fpcprojects/trunk fpcprojects
 #
 # lazarus
 #
 svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus
 „
 o ™he™k out — ˜r—n™hD repl—™e  trunk  in the —˜ove lines with the
 ˜r—n™hesG`˜r—n™h n—mebF iFgF to ™he™k out the ˜r—n™h
 (xes•P•RX

 // to check out a branch replace trunk in the above lines with
 branches/branch name E.g. To checkout the branches_2.4


 5
 \href{ftp://ftp.freepascal.org/pub/fpc/snapshot/v24/source/fpc.zip}{ftp://ftp.freepascal.org/pub/fpc/snapshot/v24/source/fpc.zip
 6
 \href{ftp://ftp.freepascal.org/pub/fpc/snapshot/v25/source/fpc.zip}{ftp://ftp.freepascal.org/pub/fpc/snapshot/v25/source/fpc.zip
 development series)}
 (2.2.x)}
 (2.5.x
 CHAPTER 1.
 BASE PRINCIPLES, NAMING, VERSIONS, REQUIREMENTS ETC
 IQ
 svn co http://svn.freepascal.org/svn/fpc/branches/fixes_2_4 fpc-2.4.x
 ƒpe™i(™ rele—ses —re t—gged with — t—g th—t is form—ted like ‚ivieƒi•P•R•H D
 —nd ™—n ˜e ™he™ked out like thisX
 svn co http://svn.freepascal.org/svn/fpc/tags/RELEASE_2_4_0 fpc-2.4.0

I had some problems when I tried install FPC and Lazarus on WinXP.
So, after I made this tutorial:
http://wiki.lazarus.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29

...any installation on Windows I always use it.

Marcos Douglas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal