Back-end build error apparently caused by FreqOut

Discussion of issues related specifically to writing code for native mode devices. This includes ZBasic code as well as assembly language code and C code, both inline and standalone.
Post Reply
Innovator_99
Posts: 12
Joined: 14 February 2009, 19:12 PM

Back-end build error apparently caused by FreqOut

Post by Innovator_99 »

FreqOut() seems to cause a back-end build error when attempting to compile for native-mode devices:

Code: Select all

>"C:\Program Files\ZBasic\zbasic.exe"  --target-device=ZX44t --directory="C:\Users\Admin\Dropbox\ZBasic_Projects/" --project="myproj.pjt"
make: Entering directory `C:/Users/Admin/Dropbox/ZBasic_Projects/zb_9ee70X'
avr-gcc -c -DF_CPU=7372800UL -mmcu=atmega1284p -DZBASIC_APP -Dzx44t -DZB_MOD_NAME=myproj -I"C:/PROGRA~1/ZBasic/zlib" -I. -gdwarf-2 -Os -Wall -Wno-main -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -funsigned-char -fno-strict-aliasing -finline-limit=10 -ffunction-sections -fdata-sections -Wstrict-prototypes -std=gnu99 -fgnu89-inline myproj.c -o myproj.o
avr-gcc -o myproj.i1 -mmcu=atmega1284p -Wl,--gc-sections,--relax   -Wl,-L,"C:/PROGRA~1/ZBasic/zlib/avr/ldscripts" -Wl,-T,zbasic_avr51.lds -Wl,--defsym,zbSendByte=zbSendByteHW "C:/PROGRA~1/ZBasic/zlib/avr/arch/zbasic_avr51.o" "C:/PROGRA~1/ZBasic/zlib/avr/MT/libMT_mega1284p.a"  myproj.o   "C:/PROGRA~1/ZBasic/zlib/avr/MT/libMT_mega1284p.a" "C:/PROGRA~1/ZBasic/zlib/avr/lib/libmega1284p.a" -lm
C:/PROGRA~1/ZBasic/zlib/avr/lib/libmega1284p.a(freqOut.o): In function `zbFreqOut':
(.text+0x102): undefined reference to `zbCheckTaskSwitch'
collect2.exe: error: ld returned 1 exit status
make: *** [myproj.i1] Error 1
make: Leaving directory `C:/Users/Admin/Dropbox/ZBasic_Projects/zb_9ee70X'
Error: one or more errors occurred in the back-end build process for "myproj.zxb"
>Exit code: 1
I'm using IDE v1.7.4 and compiler v4.3.12 on Win7-64. I have no problems compiling if calls to FreqOut are commented out.

Thanks in advance for your assistance...and Happy Holidays!

Phil
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Back-end build error apparently caused by FreqOut

Post by dkinzer »

Innovator_99 wrote:FreqOut() seems to cause a back-end build error when attempting to compile for native-mode devices
Confirmed and fixed. An updated version of the compiler can be downloaded via a link on the Downloads Page.

Note that the installer has not been updated yet. Rather, scroll down the page a bit until you see the link to download the compiler update. Extract the .exe file from the .zip archive to the ZBasic installation directory (rename/copy the existing ZBasic.exe if you wish to preserve it).
- Don Kinzer
Innovator_99
Posts: 12
Joined: 14 February 2009, 19:12 PM

Post by Innovator_99 »

Constantly amazed at responsiveness and thoroughness of the support here...thanks!!
Post Reply