Fb upgrade problems

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

Fb upgrade problems

Postby Cpcdos » Mar 19, 2019 12:44

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: 6246
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Re: Fb upgrade problems

Postby counting_pine » Mar 19, 2019 14:02

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

Postby Cpcdos » May 19, 2019 9:50

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 ;)

Return to “DOS”

Who is online

Users browsing this forum: No registered users and 3 guests