TweetFollow Us on Twitter

Jul 96 Top 10
Volume Number:12
Issue Number:7
Column Tag:Symantec Top 10

Symantec Top 10

By Craig Conner

Note: Source code files accompanying article are located on MacTech CD-ROM or source code disks.

This month we take a look at some new technologies, and then look at SPM. We also visit a few interesting topics from the newsgroups.

Q: I would like to do development of QuickDraw 3D applications using SPM, but I am getting “unrecognized pragma” warnings after patching the QD3D headers and samples.

A: The latest versions of the QuickDraw 3D headers (from the April ’96 SDK) do not need any changes; however, they do include a pragma option, !align_arrays, which is not supported (and not necessary) on a PPC machine. Since it is just a warning, you can safely ignore it.

Also, to compile and debug the sample projects, you will need to:

1. open and update the project files;

2. enable Exception Handling in the PowerPC translator;

3. enable Background Events; and

4. replace the .xcoff libraries with their non-.xcoff versions using the Script menu item Replace.xcoff libs.

Q: Now that SPM supports 68K, can I create 68K code resources?

A: Yes. You will need to specify the correct link options via the Link Options, and you will need to specify the resource type and ID in the Command Line Linker Options page in the Additional Command Line Options.edit pane with -rt type=ID. Also, the SPM adds a 'SIZE' resource to your target, which can be removed with ResEdit. Contact Symantec Technical Support for a project model to ease set-up.

Q: Can I use SPM to build Apple Shared Library Manager libraries?

A: Yes. There is a project model for building shared libraries on our ftp site at ftp://ftp.symantec.com.

Q: I would like to be able to write 68K assembly code, but the 8.1 C translator does not allow that. Is there a way to use 68K assembly code in SPM?

A: Yes. In the Goodies:Tech Support Goodies folder are 68K Assembly and 68K Pascal translators. These two translators allow you to compile 68K code via ToolServer, but provide a consistent user interface within the Symantec Project Manager. These two translators also support the new ability of SPM to combine 68K and PPC source and libraries within the same project, to create a fat application using a single project file.

Q: I want to use MrC++ to build a VA application, but if I specify MrC and MrC++ as the translators, I get a bunch of undefined Bedrock symbols.

A: MrC and MrC++ do not currently support the native exception handling of the Symantec C and C++ translators, but by replacing BRLib.o and PPCCPlusLib TCL.o with BrLib (non-native eh).o and PPCCPlusLib TCL_BRLibeh.o [I suspect he means PPCCPlusLib TCL_BELeh.o here - man], you can use MrC and MrC++ to generate your VA application.

Q: I am getting this link error when building an application in the SPM:

 "Toolserver 's must occur in pairs."

What causes it?

A: Most likely, you have a single-quote character in a folder located in the path to your project folder, something like Dave's Folder. ToolServer makes special use of single-quote characters in pathnames. Removing the apostrophe will fix the problem but make your filenames sound ungrammatical. So much for good English.

Q: When trying to create a PCI driver, I get these link errors:


Multiply Defined Symbol:

BlockMove (DriverServicesLib, InterfaceLib)

Multiply DefinedSymbol:

BlockMoveData (DriverServicesLib, InterfaceLib)


The libraries involved are:

DriverServicesLib 1.0.2 from the April 96 SDK 2 disk

InterfaceLib 1.1 from our Release 5 CD

How do I avoid this?

A: This is a bug in the DriverServicesLib. These symbols should not have been redefined in this library. Hopefully, by the time you read this Apple will have released a newer version.

Q: And now a Java question. When compiling my Java project I am getting the compile error:


Error: File Foo.class does not contain Foo as expected, but java.somepackage.Foo. Please remove the file.


What gives?

A: The project is looking for something in the java.somepackage.Foo package, but can not find it. Most likely you forgot to import it. Add an import java.somepackage.Foo line and it should fix it.

Q: Is there a TCL archive somewhere?

A: You can now find indices at:

http://rhino.harvard.edu/dan/TCLArchive.html

and the files themselves at:

ftp://rhino.harvard.edu/pub/dan/TCL/

If you have classes you want to add, upload them to:

ftp://rhino.harvard.edu/incoming/

and send Dan Crevier at dan@rhino.harvard.edu a message about it. By the way, thanks, Dan.

Q: I am trying to port a PowerPlant application to Symantec C++, but I get the following error:

 File "PPobClasses.cp"; Line 57
 Error:   cannot implicitly convert
 from: LButton *(*"C++")(LStream *)
 to  : void *(*"C++")(LStream *)

on the line:

URegistrar::RegisterClass(LButton::class_ID,
 LButton::CreateButtonStream);

Why?

A: The second parameter of RegisterClass() is a ClassCreatorFunc, defined as:

typedef void* (*ClassCreatorFunc)(LStream *);

The problem is that each object’s creator function (as for LButton above) returns a pointer to a class, which violates contravariance rules of C++.

Thanks to multiple people here in tech support, who each individually probably wrote more for this article than I did.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Navicat Premium Essentials 15.0.11 - Pro...
Navicat Premium Essentials is a compact version of Navicat which provides basic and necessary features you will need to perform simple administration on a database. It supports the latest features... Read more
Delicious Library 3.9 - Import, browse a...
Delicious Library allows you to import, browse, and share all your books, movies, music, and video games with Delicious Library. Run your very own library from your home or office using our... Read more
ffWorks 2.0.1 - Convert multimedia files...
ffWorks, focused on simplicity, brings a fresh approach to the use of FFmpeg, allowing you to create ultra-high-quality movies without the need to write a single line of code on the command-line.... Read more
TeamViewer 15.3.2682 - Establish remote...
TeamViewer gives you remote control of any computer or Mac over the Internet within seconds or can be used for online meetings. Find out why more than 200 million users trust TeamViewer! Free for non... Read more
Affinity Designer 1.8.1 - Vector graphic...
Affinity Designer is an incredibly accurate vector illustrator that feels fast and at home in the hands of creative professionals. It intuitively combines rock solid and crisp vector art with... Read more
Wireshark 3.2.2 - Network protocol analy...
Wireshark is one of the world's foremost network protocol analyzers, and is the standard in many parts of the industry. It is the continuation of a project that started in 1998. Hundreds of... Read more
Affinity Photo 1.8.1 - Digital editing f...
Affinity Photo - redefines the boundaries for professional photo editing software for the Mac. With a meticulous focus on workflow it offers sophisticated tools for enhancing, editing and retouching... Read more
iShowU Instant 1.3.2 - Full-featured scr...
iShowU Instant gives you real-time screen recording like you've never seen before! It is the fastest, most feature-filled real-time screen capture tool from shinywhitebox yet. All of the features you... Read more
NeoFinder 7.5.1 - Catalog your external...
NeoFinder (formerly CDFinder) rapidly organizes your data, either on external or internal disks, or any other volumes. It catalogs and manages all your data, so you stay in control of your data... Read more
App Tamer 2.5 - Efficiently manage your...
App Tamer tames your processor-monopolizing apps and keeps them from chewing up excessive CPU time and battery life. Powered by a unique AutoStop feature, App Tamer stops each application when you... Read more

Latest Forum Discussions

See All

Amon Amarth Berserker is a side-scrollin...
Amon Amarth Berserker is the latest game from Ride & Crash and serves as a follow up to the previous title that was simply called Amon Amarth. It's available now as a premium title for both iOS and Android. [Read more] | Read more »
Team up with your guildmates to take on...
MU Origin 2's latest update is now live and brings with it two new Abyss-related events to challenge Guilds. There are also a few new features that will allow players to enhance their costumes, an increased level cap and more. [Read more] | Read more »
Build Your Own Apple Arcade, For $400
Apple Arcade has been out for a little over a month, and I’m not entirely thrilled with it. It’s definitely an interesting idea, but it leaves a lot to be desired, especially in fulfilling its commitment to letting folks “play anywhere.” Still, at... | Read more »
Creepy Little Monsters is a cute, monste...
Creepy Little Monsters is a retro throwback that sees you traversing tricky puzzle-platformer levels as a one-eyed monster. It aims to offer a fresh take on 80s and 90s classics of the genre, and it's out right now for iOS and Android. [Read more... | Read more »
Tyrant's Arena delivers intense her...
Tyrant's Arena is an intense midcore multiplayer actioner where you'll compete in tricky 3v3 matches to crush your opponents and earn neat rewards. It comes to us from developer Kroy Games, and it's now available for pre-registration on iOS and... | Read more »
Mobile Games Starter Kit
Over here at 148Apps, we regularly dive deep into the latest and greatest mobile games hitting the App Store, but that’s not always what people are looking for when searching for a new mobile game. Some folks just want to dip their toes into... | Read more »
Unresolved is a hard-hitting narrative a...
Ghofran Akil's Unresolved in an upcoming text-based adventure game that sees you playing as a mother attempting to find her disappeared husband during the Lebanese Civil War. [Read more] | Read more »
Marvel Strike Force introduces new brawl...
FoxNext's squad-based RPG Marvel Strike Force is set to receive some fresh characters from the X-Men and Iron Man series. They'll arrive as part of the game's latest update, which follows a sizable spending boycott on the title due to complaints... | Read more »
Speed Dating for Ghosts is a narrative a...
Speed Dating for Ghosts originally released on Steam back 2018, since then it has received honourable mentions for narrative during the Independent Games Festival. Now it's made its way over to iOS devices where it's available as a premium title... | Read more »
Fast-paced multiplayer title Tennis Star...
Tennis Stars: Ultimate Clash is the latest free-to-play tennis title to hit iOS and Android. It's said to be a fairly casual experience, offering easy-to-learn controls and fast-paced, mobile-friendly matches. [Read more] | Read more »

Price Scanner via MacPrices.net

Back in stock! Apple’s 4-core and 6-core 2018...
Apple has Certified Refurbished 2018 Mac minis available on their online store for $120-$170 off the cost of new models. Each mini comes with a new outer case plus a standard Apple one-year warranty... Read more
10″ 128GB iPads on sale today at Amazon for $...
Amazon has new 10.2″ 128GB WiFI iPads for $100 off Apple’s MSRP. These are the same iPads sold by Apple in their retail and online stores. Note that some sale prices may be restricted to certain... Read more
Orcam MyEye 2 Is Inspiration Apple Needs To M...
EDITORIAL: 02.28.20- It’s no secret that Apple is planning to further expand into the wearables segment, working quietly behind the scenes to create its own smart glasses — as rumors have suggested... Read more
Boost Mobile 1-day Flash Sale: $100 off all A...
Boost Mobile is offering Apple’s 2019 iPhone 11 and 11 Pro models for $100 off MSRP. Boost is also offering the same $100 discount on new previous-generation iPhone XS, XR, X, 8, and 7 models. For... Read more
13″ 1.4GHz Silver MacBook Pros on sale for $1...
B&H Photo has new 2019 13″ 1.4GHz Silver MacBook Pros on sale for $150 off Apple’s MSRP today with prices starting at $1149. Overnight shipping is free to many addresses in the US. These are the... Read more
Apple resellers offer $150-$170 discounts on...
Amazon has new 2019 13″ MacBook Airs on sale for $150-$170 off Apple’s MSRP, with prices starting at $949, each including free shipping. These are the same MacBook Airs Apple sells in their retail... Read more
B&H is again offering $100 discounts on M...
B&H Photo has 4-Core and 6-Core Mac minis on sale for $100 off Apple’s standard MSRP, with prices starting at only $699. Overnight shipping is free to many US addresses: – 3.6GHz Quad-Core mini... Read more
B&H Photo drops iMac prices, offers model...
B&H Photo has new 2019 21″ and 27″ 5K iMacs in stock today and on sale for up to $250 off Apple’s MSRP, with prices starting at only $999. These are the same iMacs sold by Apple in their retail... Read more
Flash sale! 11″ 64GB WiFi iPad Pro for $674,...
Walmart has the 11″ 64GB WiFi iPad Pro on sale on their online store today for $674. That’s $125 off Apple’s MSRP for this model and the cheapest price available from any Apple reseller. Choose free... Read more
Sale! Get the 256GB 13″ Silver MacBook Air fo...
Amazon has new 2019 13″ 1.6GHz/256GB MacBook Airs, in Silver, on sale today for only $999 shipped. Their price is $300 off Apple’s MSRP for this model, and it’s the cheapest price for a 256GB MacBook... Read more

Jobs Board

Windows/ *Apple* Technical Support Engineer...
Windows/ Apple Technical Support Engineer Key Role: Serve as a part of a dynamic corporate technical support group. Provide Tier III technical support and monthly Read more
Medical Assistant - *Apple* Valley Clinic -...
…professional, quality care to patients in the ambulatory setting at the M Health Fairview Apple Valley Clinic, located in Apple Valley, MN. Join the **M Health Read more
Medical Assistant - *Apple* Valley Clinic -...
…professional, quality care to patients in the ambulatory setting at the M Health Fairview Apple Valley Clinic, located in Apple Valley, MN. Join the **M Health Read more
Geek Squad Advanced Repair *Apple* Professi...
**764652BR** **Job Title:** Geek Squad Advanced Repair Apple Professional **Job Category:** Store Associates **Store NUmber or Department:** 000245- Apple Read more
Medical Assistant - *Apple* Valley Clinic -...
…professional, quality care to patients in the ambulatory setting at the M Health Fairview Apple Valley Clinic, located in Apple Valley, MN. Join the **M Health Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.