Fb upgrade problems

DOS specific questions.
Post Reply
Cpcdos
Posts: 207
Joined: Mar 06, 2013 13:52
Location: France - LYON 69003
Contact:

Fb upgrade problems

Post by Cpcdos »

Hi,

I've upgrade FreeBasic 1.05.0 to 1.06.0 and i can't compil my project.

More "undefined reference" to external "C" functions (compiled with GPP for dos) in my libs (cpclib.a)
Why this new update cause this ? What are modifications ?

Image

Best regards,
Sebastien FAVIER
counting_pine
Site Admin
Posts: 6323
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Re: Fb upgrade problems

Post by counting_pine »

Is it a custom .bi file?
I think the problem is caused by this changelog item:
Version 1.06.0

[changed]
- Name mangling of Integer/Long parameters was reversed on 32bit to match 64bit, so the same FB and C++ code will be compatible on both 32bit and 64bit. Integer is mangled as C++ long (except on Win64), Long is mangled as C++ int.
Maybe the function parameters just need changing from [Unsigned] Long to Integer.
Cpcdos
Posts: 207
Joined: Mar 06, 2013 13:52
Location: France - LYON 69003
Contact:

Re: Fb upgrade problems

Post by Cpcdos »

Oops sorry for my late reply!
I've renommed all "integer" to "long" and "uinteger" to "ulong" in my custom bi --> c++ file, I can compile, so this works !
Thank you ;)
Post Reply