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

Latest Forum Discussions

See All

If you can find it and fit through the d...
The holy trinity of amazing company names have come together, to release their equally amazing and adorable mobile game, Hamster Inn. Published by HyperBeard Games, and co-developed by Mum Not Proud and Little Sasquatch Studios, it's time to... | Read more »
Amikin Survival opens for pre-orders on...
Join me on the wonderful trip down the inspiration rabbit hole; much as Palworld seemingly “borrowed” many aspects from the hit Pokemon franchise, it is time for the heavily armed animal survival to also spawn some illegitimate children as Helio... | Read more »
PUBG Mobile teams up with global phenome...
Since launching in 2019, SpyxFamily has exploded to damn near catastrophic popularity, so it was only a matter of time before a mobile game snapped up a collaboration. Enter PUBG Mobile. Until May 12th, players will be able to collect a host of... | Read more »
Embark into the frozen tundra of certain...
Chucklefish, developers of hit action-adventure sandbox game Starbound and owner of one of the cutest logos in gaming, has released their roguelike deck-builder Wildfrost. Created alongside developers Gaziter and Deadpan Games, Wildfrost will... | Read more »
MoreFun Studios has announced Season 4,...
Tension has escalated in the ever-volatile world of Arena Breakout, as your old pal Randall Fisher and bosses Fred and Perrero continue to lob insults and explosives at each other, bringing us to a new phase of warfare. Season 4, Into The Fog of... | Read more »
Top Mobile Game Discounts
Every day, we pick out a curated list of the best mobile discounts on the App Store and post them here. This list won't be comprehensive, but it every game on it is recommended. Feel free to check out the coverage we did on them in the links below... | Read more »
Marvel Future Fight celebrates nine year...
Announced alongside an advertising image I can only assume was aimed squarely at myself with the prominent Deadpool and Odin featured on it, Netmarble has revealed their celebrations for the 9th anniversary of Marvel Future Fight. The Countdown... | Read more »
HoYoFair 2024 prepares to showcase over...
To say Genshin Impact took the world by storm when it was released would be an understatement. However, I think the most surprising part of the launch was just how much further it went than gaming. There have been concerts, art shows, massive... | Read more »
Explore some of BBCs' most iconic s...
Despite your personal opinion on the BBC at a managerial level, it is undeniable that it has overseen some fantastic British shows in the past, and now thanks to a partnership with Roblox, players will be able to interact with some of these... | Read more »
Play Together teams up with Sanrio to br...
I was quite surprised to learn that the massive social network game Play Together had never collaborated with the globally popular Sanrio IP, it seems like the perfect team. Well, this glaring omission has now been rectified, as that instantly... | Read more »

Price Scanner via MacPrices.net

B&H has 13-inch M2 MacBook Airs with 16GB...
B&H Photo has 13″ MacBook Airs with M2 CPUs, 16GB of memory, and 256GB of storage in stock and on sale for $1099, $100 off Apple’s MSRP for this configuration. Free 1-2 day delivery is available... Read more
14-inch M3 MacBook Pro with 16GB of RAM avail...
Apple has the 14″ M3 MacBook Pro with 16GB of RAM and 1TB of storage, Certified Refurbished, available for $300 off MSRP. Each MacBook Pro features a new outer case, shipping is free, and an Apple 1-... Read more
Apple M2 Mac minis on sale for up to $150 off...
Amazon has Apple’s M2-powered Mac minis in stock and on sale for $100-$150 off MSRP, each including free delivery: – Mac mini M2/256GB SSD: $499, save $100 – Mac mini M2/512GB SSD: $699, save $100 –... Read more
Amazon is offering a $200 discount on 14-inch...
Amazon has 14-inch M3 MacBook Pros in stock and on sale for $200 off MSRP. Shipping is free. Note that Amazon’s stock tends to come and go: – 14″ M3 MacBook Pro (8GB RAM/512GB SSD): $1399.99, $200... Read more
Sunday Sale: 13-inch M3 MacBook Air for $999,...
Several Apple retailers have the new 13″ MacBook Air with an M3 CPU in stock and on sale today for only $999 in Midnight. These are the lowest prices currently available for new 13″ M3 MacBook Airs... Read more
Multiple Apple retailers are offering 13-inch...
Several Apple retailers have 13″ MacBook Airs with M2 CPUs in stock and on sale this weekend starting at only $849 in Space Gray, Silver, Starlight, and Midnight colors. These are the lowest prices... Read more
Roundup of Verizon’s April Apple iPhone Promo...
Verizon is offering a number of iPhone deals for the month of April. Switch, and open a new of service, and you can qualify for a free iPhone 15 or heavy monthly discounts on other models: – 128GB... Read more
B&H has 16-inch MacBook Pros on sale for...
Apple 16″ MacBook Pros with M3 Pro and M3 Max CPUs are in stock and on sale today for $200-$300 off MSRP at B&H Photo. Their prices are among the lowest currently available for these models. B... Read more
Updated Mac Desktop Price Trackers
Our Apple award-winning Mac desktop price trackers are the best place to look for the lowest prices and latest sales on all the latest computers. Scan our price trackers for the latest information on... Read more
9th-generation iPads on sale for $80 off MSRP...
Best Buy has Apple’s 9th generation 10.2″ WiFi iPads on sale for $80 off MSRP on their online store for a limited time. Prices start at only $249. Sale prices for online orders only, in-store prices... Read more

Jobs Board

Medical Assistant - Orthopedics *Apple* Hil...
Medical Assistant - Orthopedics Apple Hill York Location: WellSpan Medical Group, York, PA Schedule: Full Time Sign-On Bonus Eligible Remote/Hybrid Regular Apply Now Read more
*Apple* Systems Administrator - JAMF - Activ...
…**Public Trust/Other Required:** None **Job Family:** Systems Administration **Skills:** Apple Platforms,Computer Servers,Jamf Pro **Experience:** 3 + years of Read more
Liquor Stock Clerk - S. *Apple* St. - Idaho...
Liquor Stock Clerk - S. Apple St. Boise Posting Begin Date: 2023/10/10 Posting End Date: 2024/10/14 Category: Retail Sub Category: Customer Service Work Type: Part Read more
Top Secret *Apple* System Admin - Insight G...
Job Description Day to Day: * Configure and maintain the client's Apple Device Management (ADM) solution. The current solution is JAMF supporting 250-500 end points, Read more
Sonographer - *Apple* Hill Imaging Center -...
Sonographer - Apple Hill Imaging Center - Evenings Location: York Hospital, York, PA Schedule: Full Time Sign-On Bonus Eligible Remote/Hybrid Regular Apply Now Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.