Compiler Errors With Class Definitions and Clients
Hi there, I need help with some code, here it is.
import java.util.*;
import java.text.*;
public class InvestCalc {
//declaration of instance variables
private double interest, principal;
//default constructor, sets interest and principal to zero
public InvestCalc() {
interest = 0.0;
principal = 0.0;
//overloaded constructor
public InvestCalc( double startInterest, double startPrincipal) {
interest = startInterest;
principal = startPrincipal;
//accessor methods for instance variables
public double getRate() {
return interest;
public double getPrincipal() {
return principal;
//mutator methods
public void setRate(double newInterest) {
interest = newInterest;
public void setPrincipal(double newPrincipal) {
principal = newPrincipal;
//String toString() method
public String toString() {
return "Interest Rate: " + percent.format(interest) + ", Principal: " + DOLLAR_FORMAT.format(principal);
//futureValue(int year) method
public double futureValue(int year) {
double futureValue = Math.pow((1 + interest), year)*principal;
return futureValue;
//public static final class variables
public static final int shortTerm = 5;
public static final int middleTerm = 10;
public static final int longTerm = 20;
//public void display Table() method
public void displayTable() {
System.out.println("Year" + "\t" + "Interest Rate" + "\t\t" + "Principal" + "\t\t" + "Future Value");
System.out.println(shortTerm + "\t" + percent.format(interest) + "\t\t\t" + DOLLAR_FORMAT.format(principal) + "\t\t" + DOLLAR_FORMAT.format(futureValue(shortTerm)));
System.out.println(middleTerm + "\t" + percent.format(interest) + "\t\t\t" + DOLLAR_FORMAT.format(principal) + "\t\t" + DOLLAR_FORMAT.format(futureValue(middleTerm)));
System.out.println(longTerm + "\t" + percent.format(interest) + "\t\t\t" + DOLLAR_FORMAT.format(principal) + "\t\t" + DOLLAR_FORMAT.format(futureValue(longTerm)));
//formatting section
public static final NumberFormat DOLLAR_FORMAT = NumberFormat.getCurrencyInstance();
public static final DecimalFormat percent = new DecimalFormat("##0.00%");
import java.util.*;
public class InvestCalcApp {
* @param args
public static void main(String[] args) {
// TODO Auto-generated method stub
//declare Scanner class and interest, principal vars
Scanner input = new Scanner(System.in);
double interest, principal; //vars for the interest rate and initial investment
//instantiate a default object of the InvestCalc class
InvestCalc value1 = new InvestCalc();
System.out.println("Default InvestCalc Object");
System.out.println(value1.toString()+ "\n");
//query for interest and principal
System.out.print("Enter an interest rate in decimal format: ");
interest = input.nextDouble();
System.out.print("Enter the initial investment value: ");
principal = input.nextDouble();
//change object and output
value1.setRate(interest);
value1.setPrincipal(principal);
System.out.println("Updated InvestCalc Object");
System.out.println(value1.toString());
//test the futureValue method and the DOLLAR_FORMAT static class variable
System.out.println("Value after 1 year " + InvestCalc.DOLLAR_FORMAT.format(value1.futureValue(1)) + "\n");
value1.displayTable();
//query for another interest and principal
System.out.print("Enter another interest rate in decimal format: ");
interest = input.nextDouble();
System.out.print("Enter another initial investment value: ");
principal = input.nextDouble();
//instantiate an object of the InvestCalc class
InvestCalc value2 = new InvestCalc(interest, principal);
System.out.println("Non-Default InvestCalc Object");
System.out.println(value2.toString()+ "\n");
value2.displayTable();
}When I compile InvestCalc.java it compiles; however, when I compile InvestCalcApp.java I receive 5 errors:
InvestCalcApp.java:15: cannot find symbol
symbol : class InvestCalc
location: class InvestCalcApp
InvestCalc value1 = new InvestCalc();
InvestCalcApp.java:15: cannot find symbol
symbol : class InvestCalc
location: class InvestCalcApp
InvestCalc value1 = new InvestCalc();
InvestCalcApp.java:32: package InvestCalc does not exist
System.out.println("Value after 1 year " + InvestCalc.DOLLAR_FORMAT.format(value1.futureValue(1)) + "\n");
InvestCalcApp.java:42: cannot find symbol
symbol : class InvestCalc
location: class InvestCalcApp
InvestCalc value2 = new InvestCalc(interest, principal);
InvestCalcApp.java:42: cannot find symbol
symbol : class InvestCalc
location: class InvestCalcApp
InvestCalc value2 = new InvestCalc(interest, principal);Sorry if that's a lot of reading, but I need help, I'm new at this and not quite sure what those errors mean. Thanks
The errors mean the compiler can not find the InvestCalc class. The compiler looks for classes using the Classpath. It might work if you use a command likejavac -cp . InvestCalcApp.javaThis command tells javac to look in the current directory for dependent classes.
Similar Messages
-
Compiler error with default arguments and static template function
Hi
The following does not compile with visual studio 2010 sp1, and compiles with gcc.
#include <string>
class A
public:
template<class T>
static T& Get(const std::wstring&);
class B
public:
void f(
double d,
double c =A::Get<double>(L"test"));
int main()
B b;
b.f(5);
It gives me the following error
error C2783: 'T & A::Get(const wchar_t *)' : could not deduce template argument for 'T'
If I change Get to be global function and not static function of A, it compiles.It seems to be a compiler bug. It fails in VS2012, but compiles in VS2013.
For completion sake, the problem exists if A is a namespace containing Get. But not if Get is global.
The only solutions I can see are try to workaround the problem (make Get global) or upgrade to a newer version of VS. -
Compilation errors with JDeveloper 10.1.2.2.0
Hello,
I want to change my environment work. First I worked with Eclipse (Europa, jre 1.6), I have no error with my following code source :
private List<String> lString;
and now I have a compilation error with the same code
' Error(43,14): <identifier> expected '
I think it's a compiler version problem but I'm not sure and I don't know how to change the compiler version.
If someone have any idea, I will be happy to receive response.
ThanksJDeveloper 10.1.2.2.0 doesn't support neither JDK 1.6 nor JDK 1.5.
--olaf -
Problems with games server and client
Hi! I am making an MMORPG game and I have problems with the server and client connection.
I can connect to the server, but when a second player does, the server console tells me this:
java.net.SocketException: Connection reset
After that, all clients disconnect.
Which is the problem?
How can I solve it?
Thank you so muchHere is how my sever work. I took some of this code from a book called Killer Programming Games in Java. If you google for it, you will find it for sure.
TourGroup tg = new TourGroup(); // this object stores information about all clients connected to the server
try {
ServerSocket serverSock = new ServerSocket(PORT);
Socket clientSock;
while (true) {
System.out.println("Waiting for a client...");
clientSock = serverSock.accept();
new TourServerHandler(clientSock, tg).start(); // this is the thread that monitors each client
catch(Exception e)
{ System.out.println(e); }
} This is some code of TourServerHandler
public TourServerHandler(Socket s, TourGroup tg)
this.tg = tg;
clientSock = s;
name= "?";
cliAddr = clientSock.getInetAddress().getHostAddress();
port = clientSock.getPort();
System.out.println("Client connection from (" +
cliAddr + ", " + port + ")");
public void run()
// process messages from the client
try {
// Get I/O streams from the socket
BufferedReader in = new BufferedReader(
new InputStreamReader( clientSock.getInputStream() ) );
PrintWriter out =
new PrintWriter( clientSock.getOutputStream(), true );
// and here goes the rest... The TourServerHandler thread uses this code to send messages:
tg.broadcast(msg); tg.broadcast works like this:
synchronized public void broadcast(String cliAddr, int port, String msg)
// broadcast to everyone but original msg sender
TouristInfo c; // this object stores info about the client
for(int i=0; i < tourPeople.size(); i++) {
c = (TouristInfo) tourPeople.get(i);
c.sendMessage(msg);
} This is the error part
public void sendMessage(String msg)
PrintWriter out;
out.println(msg);
System.out.println("OK");
} I can't find any error but I still get that Connection reset exception... -
am unable to burn any info-photo ect on to a disk. I have a 27" I mac mid 2010 version. I put in a disk, hit burn, it runs for about 3 mins and ejects the disk sayiny there was an error with the drive and will not restart.
The optical drive has probably failed. It's a fairly common thing with these slim SuperDrives. Does it read any discs you put into it? You can try resetting the SMC and pram but I'll be surprised if it helps.
To reset the SMC
Shut down the computer.
Unplug the computer's power cord.
Wait fifteen seconds.
Attach the computer's power cord.
Wait five seconds, then press the power button to turn on
Resetting PRAM and NVRAM
Shut down the computer.
Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
Turn on the computer.
Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
Hold the keys down until the computer restarts and you hear the startup sound for the second time.
Release the keys. -
I was downloading the software update for ipod touch 2gen and after it was done downloading it showed that there was an error with my ipod and when i saw it was on the lockscreen loading. its been like this for 4 hours already
What did the error message say?
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
Hi,
I had a java file with compilation errors as shown in eclipse IDE.
But the class file is still generated in the classes folder on building and pressing clean the project.
I confirmed that the class file has an updated time stamp and also that a System.out.println() statement that i added was indeed printed out when this class was encountered during the running of a web application in which this class was called somewhere.
(The java class has no subclasses and it is a single class with public modifier).
How does it happen so?
Regards,
Karthik.As far as I know, the java code is compiled in Eclipse as soon as you save it. i.e. press CTRL+SHIFT+s
as far as the build is concerned, in case you have a build file where you specify how to make a jar file, the location the jsr file is to be placed, only then you have to build the project. However again, as far as just simple compile is concerned as soon as you save the files are compiled. And show you the errors if any in the tasks window. -
Errors with JDK1.4 and IS 5.1
has anyone experienced problems using JDK1.4 with IS 5.1 and AM SDK ?
I get JSS errors Key is null
appears to be problems with the org.mozilla.jss packages
do they need to be updated to a newer release for jdk14 ?
i tried renaming the jss311.jar.jdk14 to jss311.jar but it did not make a difference
I am running Solaris 8just compile u idl with visibroker under jdk1.3 and get the jar file. then use this jar file, implement the server and client. i tried it before.
-
Compiler bug in 10.1.3 EA1? get "Internal compilation error" with EnumSet
The code sample below generates "Error: Internal compilation error, terminated with a fatal exception" when doing make. It's a very simple example, it creates an EnumSet with one element and dumps it via the "toString()" method.
If I change the line:
"EnumSet set = EnumSet.of(Buttons.ONE);"
To:
"EnumSet set = EnumSet.allOf(c);"
It works fine. For some reason the "of" method of "EnumSet" crashes the compiler.
Any ideas?
========================================
package mypackage;
import java.util.EnumSet;
public class EnumDemo
enum Buttons { ONE, TWO, THREE }
public EnumDemo()
public void dump()
Class c = Buttons.class;
EnumSet set = EnumSet.of(Buttons.ONE);
System.out.println(set.toString());
public static void main(String[] args)
EnumDemo cls = new EnumDemo();
cls.dump();
==============================package com.esp.main;
import java.awt.Dimension;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JTree;
import javax.swing.event.TreeModelEvent;
import javax.swing.event.TreeModelListener;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
public class TreeNavigator extends JTree {
private FormMain fm;
public TreeNavigatorNode selectedTreeNode;
public TreePath selectedTreePath;
public JTree thisTree;
public TreeNavigator(FormMain pFM) {
fm = pFM;
thisTree = this;
addTreeSelectionListener(new TreeSelectionListener() {
public void valueChanged(TreeSelectionEvent e) {
selectedTreeNode = (TreeNavigatorNode)thisTree.getLastSelectedPathComponent();
if (selectedTreeNode == null) {
return;
selectedTreePath = e.getPath();
addMouseListener(new MouseAdapter() {
public void mouseReleased(MouseEvent e) {
if (e.getClickCount() == 1) {
doPopup(e.getX(), e.getY());
String nodeInternalFrameClassName = selectedTreeNode.getInternalFrameClassName();
String nodeNodeTypeDesc = selectedTreeNode.getNodeTypeDesc();
if ((selectedTreeNode != null) && (nodeNodeTypeDesc.equals("FORM") || nodeNodeTypeDesc.equals("GRAPH"))) {
fm.showInternalFrame(nodeInternalFrameClassName, fm, null);
} else if (e.getClickCount() == 1) {
TreePath path = thisTree.getClosestPathForLocation(e.getX(), e.getY());
thisTree.setSelectionPath(path);
public void doPopup(int x, int y) {
if ((selectedTreeNode != null) && selectedTreeNode.nodeTypeDesc.equals("MODULE")) {
fm.cm.sendString("Do Nothing");
} else {
fm.cm.sendString("Launch form");
setEditable(false);
setMaximumSize(new java.awt.Dimension(3200, 3200));
setPreferredSize(new java.awt.Dimension(800, 100));
setShowsRootHandles(false);
setLargeModel(false);
setRootVisible(false);
setDragEnabled(false);
DefaultTreeModel treeNavigatorModel = new DefaultTreeModel(fm.treeNavigatorNodeArray[fm.rootNode], true);
treeModel.addTreeModelListener(new NavigatorTreeModelListener());
setModel(treeNavigatorModel);
expandAll(this);
try {
jbInit();
} catch (Exception e) {
e.printStackTrace();
public void expandAll(JTree tree) {
int row = 0;
while (row < tree.getRowCount()) {
tree.expandRow(row);
row++;
private void jbInit() throws Exception {
this.setSize(new Dimension(286, 383));
TreeNavigatorCellRenderer renderer = new TreeNavigatorCellRenderer(fm);
this.setCellRenderer(renderer);
class NavigatorTreeModelListener implements TreeModelListener {
public void treeNodesChanged(TreeModelEvent e) {
TreeNavigatorNode node;
node = (TreeNavigatorNode)(e.getTreePath().getLastPathComponent());
* If the event lists children, then the changed
* node is the child of the node we've already
* gotten. Otherwise, the changed node and the
* specified node are the same.
try {
int index = e.getChildIndices()[0];
node = (TreeNavigatorNode)(node.getChildAt(index));
} catch (NullPointerException exc) {
public void treeNodesInserted(TreeModelEvent e) {
public void treeNodesRemoved(TreeModelEvent e) {
public void treeStructureChanged(TreeModelEvent e) {
} -
Compile error with Jdev 10g Preview
I am trying out Jdev 10g with JHeadstart. I followed the instruction on the Oracle JHeadstart 10g and Oracle JDeveloper 10g preview document, and then used the isnstructions on the NewJhsProjectInstructions.html document.
The first time I tried to compile the project, I got a whole list of errors which looked like;
/usr/oracle/jhs904/jheadstart/src/jhsruntime_source.zip!/oracle/jheadstart/model/bc4j/JhsApplicationModuleImpl.java
Error(143,31): cannot access class oracle.cle.persistence.HandlerNotFoundException; file oracle/cle/persistence/HandlerNotFoundException.class not
This was due to Jdeveloper trying to compile jhsruntime_source.zip. I removed this from the java source path and added jhsruntime.jar.
I am now getting thisError(22,53): cannot access class oracle.jheadstart.model.bc4j.handler.DataObjectHandlerImpl; file oracle/jheadstart/model/bc4j/handler/DataObjectHandlerImpl.class not found error;
I have checked, and cinfirmed that the class file oracle/jheadstart/model/bc4j/handler/DataObjectHandlerImpl.class is in jhsruntime.jar.
The Java Source path in Jdeveloper is ;
/home/chandana/jdevhome/mywork/JHS/src;/usr/oracle/jhs904/jheadstart/lib/jhsruntime.jar.
Can some one tell me what is wrong ?Hi Chandana,
You should not put jhsruntime.jar in the Java Source Path. It should be in the Additional Classpath.
The Java Source Path (Project Settings - Common - Input Paths) should only contain /home/chandana/jdevhome/mywork/JHS/src .
If you created the library JhsLibs the way it was described in the JDev 10g document, your project should now compile correctly. The JhsLibs library ensures that your project can compile against jhsruntime.jar (amongst others).
Hope this helps,
Sandra Muller
JHeadstart Team -
Compiling Errors with latest air sdk
Not sure if any is having similar issues but here it is:
Using latest Apache Flex SDK (4.9.1) -- used the installer.
After that I overlayed the latest AIR SDK (did this three times to make sure I did right -- have done multiple times before)
Updated the application descriptor (with 3.7) and -swf-version=20 in compiler settings.
Now I am getting these errors when compiling (compiling completed 100% successfully before the upgrade).
Any suggestions or solutions would be greatly appreciated (note that I require the mx.controls.HTML class as well as the mx List and mx Canvas classes for very good reason).Hi,
This article starts with how to overlay AIR SDK's over Flex. http://www.adobe.com/devnet/air/articles/ane-android-devices.html
Please try and update if this will work for you.
Regards,
Nimit -
Compilation error with dataProvider attribute
My objective is to have a ComboBox itemEditor for a column in
a DataGrid. This
will get used in a number of places in our app, for example
to add an order
line to an order. We would want the ComboBox to be populated
with the list of
available products, and Flex goes most of the way to
providing that
functionality. But I get a compilation error on a line that I
would expect to
work. Here's the full sample:
quote:
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
height="700" width="700"
creationComplete="onLoad()">
<mx:Script>
<![CDATA[
[Bindable]
public var myDP:Array = [
{label1:"P1", quantity:3},
{label1:"P2", quantity:3}
[Bindable]
public var products:Array = [ {label:"P1", data:1},
{label:"P2", data:2}, {label:"P3", data:3} ];
public function onLoad():void
ProductsRequest.send() ;
]]>
</mx:Script>
<mx:HTTPService id="ProductsRequest"
url="
http://localhost:3000/lists/productlist"
useProxy="false"/>
<mx:Component id="ProductCodeEditor">
<mx:ComboBox
dataProvider="{ProductsRequest.lastResult.products.product}"
labelField="name"/>
</mx:Component>
<mx:ComboBox
dataProvider="{ProductsRequest.lastResult.products.product}"
labelField="name"></mx:ComboBox>
<mx:DataGrid id="myDG" dataProvider="{myDP}"
variableRowHeight="true"
editable="true">
<mx:columns>
<mx:DataGridColumn dataField="label1" headerText="Product
Code" itemEditor="{ProductCodeEditor}"/>
<mx:DataGridColumn dataField="quantity"
headerText="Quantity"
editorDataField="value">
<mx:itemEditor>
<mx:Component>
<mx:NumericStepper stepSize="1" maximum="50"/>
</mx:Component>
</mx:itemEditor>
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>
</mx:Application>
I get a complation error on the following line
quote:
<mx:Component id="ProductCodeEditor">
-->> <mx:ComboBox
dataProvider="{ProductsRequest.lastResult.products.product}"
labelField="name"/>
</mx:Component>
The error message is "Access of undefined property
ProductsRequest"
However, the other <mx:ComboBox> definition compiles
and works fine. In
other words, in the sample code (shown again below) we have
two <mx:ComboBox>
definitions with the same dataProvider definition. The one on
line 33 compiles
and works, the other doesn't, and the only difference is that
one of them is
within a <mx:Component> declaration.
quote:
27 <mx:HTTPService id="ProductsRequest"
url="
http://localhost:3000/lists/productlist"
useProxy="false"/>
28
29 <mx:Component id="ProductCodeEditor">
30 <mx:ComboBox
dataProvider="{ProductsRequest.lastResult.products.product}"
labelField="name"/>
31 </mx:Component>
32
33 <mx:ComboBox
dataProvider="{ProductsRequest.lastResult.products.product}"
labelField="name"></mx:ComboBox>
I really can't believe that this behaviour is by design. If
it is, could
somebody tell me what this design is, and how I am supposed
to populate a
combobox with product codes in a grid?
Thanks,
Ed.Sorry, I see you are trying to do that. I am not yet familiar
with inline renderers.
However, I suspect a scope issue. I bet the renderer
component does not have access to the application scope, where the
dataService is declared.
This doc might help:
http://livedocs.macromedia.com/labs/1/flex20beta3/00000857.html
Tracy -
Do java programms after giving compilation error generates .class file?
Do java programms after giving compilation error generates the .class file?
Do any outer class may have the private as access modifier?
If someone asks you that -do any program in java after giving a compilation error gives the .class file -do any class except(inner class)
be defined as private or static or protected or abc or xxx Now type the
following program
private class test
public static void main(String s[])
System.out.println("Hello!How are You!!");
-Compile it.... You must have
received this error test.java:1:The type type can't be private. Package members are always accessible within the current package. private class
test ^ 1 error
Here please notify that compiler has given the
error not the warning therfore .class file should not be created but now type
>dir *.class
___________ and you will see that the
test.class file existing in the directory nevertheless this .class file
is executable. if you will type __________________ >java test
it will
wish you Hello! and suerly asks you that How are You!! ________________!
You can test it with the following as acces modifiers and the progrm will run Ofcourse it will give you compilation error.
protected
xxx
abc
xyz
private
Do you have any justification?Hmm,
I've been working with different versions of jdk since, if I'm not mistaken, jdk1.0.6 and never was able to get *.class with compilation errors. It was true for Windows*, Linux, and Solaris*.
About the 'private'/'protected' modifier for the type (class) - it makes perfect sence not to allow it there: why would anyone want to create a type if no one can access it? There should be a reason for restricting your types - let's say, any inner class can be private/protected.
For ex., you shouldn't have compile problems with this:
class Test
public static void main(String s[])
System.out.println("Hello!How are You!!");
private class ToTest{}
Sorry, but I don't really know where you can read up on that. -
Compilation error with RWTValDlist T find() method
This code used to compile fine with SC 4.x C++ compiler. We are migrating to "Sun WorkShop 6 update 2 C++ 5.3 2001/05/15" and it is now generating the following compilation error:
===============================
cd generic/src; make -f generic.mk
/opt/SUNWspro/bin/CC -c -PIC -compat -library=rwtools7 -O2 -I. -I. -I../include -I/home/jm/sunos5.8/ib_service_3.4.3/include -I/opt/local/megen/include -I/opt/SUNWspro/WS6U2/include/CC -I../../interface/include -I../include -I. -I/home/jm/sunos5.8/acell_4.1/include -I/opt/local/access/home/include -I/home/jm/sunos5.8/acell_4.1/include/packetcpp -I/home/jm/sunos5.8/acell_4.1/include/ecl -I/home/jm/sunos5.8/acell_4.1/include/gels -I/home/jm/sunos5.8/acell_4.1/src/security/include -I/home/jm/sunos5.8/acell_4.1/include/sequencer -I/home/jm/sunos5.8/acell_4.1/include/gen -I/home/jm/sunos5.8/acell_4.1/include/recipeMgr -I/home/jm/sunos5.8/acell_4.1/include/EFEFeature -I/home/jm/sunos5.8/ib_service_3.4.3/include -I/opt/local/megen/include -I/opt/local/rv/include -I/opt/local/etk/include -I/opt/local/etk/include/tdl -DTCPIP=1 -D__SYSVR4 -DSHOP=1 -D_SOLARIS=1 -I/opt/local/std_comp/include ACEAlarmClock.C
"ACEAlarmClock.C", line 479: Error: Could not find a match for RWTValDlist<ACEObject*>::find(int(const ACEObject*&,void*), void**, ACEObject*).
1 Error(s) detected.
*** Error code 1
make: Fatal error: Command failed for target `ACEAlarmClock.o'
===============================
The header file in question is:
#include <rw/tvdlist.h>
class ACEAlarmClock : public ACEObject
// The public interface.
public:
ACEAlarmClock();
// Default constructor.
private:
static void alarmCallback(void *passAheadRef, ib_alarmid alarmId);
static RWTValDlist<ACEObject *> AlarmClocks;
and the source file in question is:
void
ACEAlarmClock::alarmCallback(void *passAheadRef, ib_alarmid alarmId)
ACEObject *object = 0; // returned by find()
if (AlarmClocks.find(findAlarmId, &alarmId, object))
ACEAlarmClock alarmClock = (ACEAlarmClock )object;
if (alarmClock)
AlarmClocks.remove(alarmClock);
alarmClock->isActive_ = FALSE;
alarmClock->onAlarm(passAheadRef, alarmId);
return;
Any help is highly appreciated. Thanks.
Cesar Saavedra
[email protected]The C++ Migration Guide that comes with the compiler explains in detail everything you to need to know about migrating from C++ 4.2 to C++ 5.3.
Use the "-compat" option on every CC command, compiling and linking. Any code that worked with C++ 4.2 will work the same way with C++ 5.3 in compat mode.
-compat=4 sets language and binary compatibility to that of the 4.x compilers. -compat=5 sets language and binary compatibility to ANSI/ISO standard mode. If the -compat option is not specified, -compat=5 is assumed.
- Rose -
Compiler errors with most recent update
I just ran the SoftwareUpdate utility and it installed QuickTime 7.1 and Apple Security Update 2006-003. Now when I compile, I get the following errors:
ld: Undefined symbols:
_LLCStyleInfoCheckForOpenTypeTables referenced from QuartzCore expected to be defined in ApplicationServices
_LLCStyleInfoGetUserRunFeatures referenced from QuartzCore expected to be defined in ApplicationServices
This error used to be "[blahblahblah] referenced from Quicktime epected to be defined in ApplicationServices" not QuartzCore. I looked at /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore and sure enough, it has a modifcation date of today.
The previous error was caused what appears to be QuickTime 7.0.4 being developed/compiled on Tiger and then distributed to Panther users like myself via Software Update.
I can't figure out whether the QuickTime update or the Security Update changed my QuartzCore, but I'm having trouble figuring out a solution to this problem.
Find a copy of the old QuartzCore framework? Figure out some way to add a dummy library that will define these symbols? Make sure Apple developers compile stuff on Panther when delivering code for Panther? I had to downgrade from Quicktime 7.0.4 to 7.0.1 to compile, which broke my iTunes 6.0.4. Now that won't even help, because the Quicktime 7.0.1 downgrade package doesn't contain QuartzCore.I can't compile anymore after the recent update on PowerMac G5 1.8GHz.
It still works on iBook G4 1GHz.
Both running Mac Os X 10.4.6
Here is an example of config.log from a failed configuration.
$ ./configure --prefix=/opt/local --infodir=${prefix}/share/info
## Platform. ##
hostname = orca.local
uname -m = Power Macintosh
uname -r = 8.6.0
uname -s = Darwin
uname -v = Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC
/usr/bin/uname -p = powerpc
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = Mach kernel version:
Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC
Kernel configured for a single processor only.
1 processor is physically available.
Processor type: ppc970 (PowerPC 970)
Processor active: 0
Primary memory available: 1.25 gigabytes
Default processor set: 68 tasks, 263 threads, 1 processors
Load average: 2.71, Mach factor: 0.24
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/X11R6/bin
## Core tests. ##
configure:1658: checking build system type
configure:1676: result: powerpc-apple-darwin8.6.0
configure:1684: checking host system type
configure:1698: result: powerpc-apple-darwin8.6.0
configure:1721: checking for a BSD-compatible install
configure:1776: result: /opt/local/bin/ginstall -c
configure:1787: checking whether build environment is sane
configure:1830: result: yes
configure:1887: checking for gawk
configure:1903: found /opt/local/bin/gawk
configure:1913: result: gawk
configure:1923: checking whether make sets $(MAKE)
configure:1943: result: yes
configure:2109: checking whether to enable maintainer-specific portions of Makefiles
configure:2118: result: no
User:
ABI=
CC=
CFLAGS=(unset)
CPPFLAGS=(unset)
MPN_PATH=
GMP:
abilist=32
cclist=gcc cc
configure:3776: gcc 2>&1 | grep xlc >/dev/null
configure:3779: $? = 1
configure:3833: checking compiler gcc -O2 -mpowerpc
Test compile:
configure:3847: gcc -O2 -mpowerpc conftest.c >&5
cc1: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:<a class="jive-link-external-small" href="http://">http://developer.apple.com/bugreporter> for instructions.
configure:3850: $? = 1
failed program was:
int main () { return 0; }
configure:4856: result: no
configure:3754: cc -c conftest.c >&5
cc1: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:<a class="jive-link-external-small" href="http://">http://developer.apple.com/bugreporter> for instructions.
configure:3757: $? = 1
configure:3776: cc 2>&1 | grep xlc >/dev/null
configure:3779: $? = 1
configure:3833: checking compiler cc -O2
Test compile:
configure:3847: cc -O2 conftest.c >&5
cc1: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:<a class="jive-link-external-small" href="http://">http://developer.apple.com/bugreporter> for instructions.
configure:3850: $? = 1
failed program was:
int main () { return 0; }
configure:4856: result: no
configure:5094: error: could not find a working compiler, see config.log for details
PowerMac G5 1.8GHz (single processor) Mac OS X (10.4.6) 1.2GB RAM
Maybe you are looking for
-
How to deploy a web application in exploded format in OAS server.
-
I bought an iphone 4-3 days ago, the audio output above does not work since I bought the unit. What do I need to do? Reinstall the software?!
-
Hi all, my mail account will not recieve mail but can send, when I hook up my old windows computer with the same mail settings the mail comes thru to that computer. the mail has been working fine on the Mac but not now, I tried to send a large file i
-
Im new to this forum and also has a very very limited knowledge about VB. Any help will do. Im actually doing an assignment but i got stuck at the part where i have to link a form to another form to create a program where students register through th
-
How to decode Google map polyline from 64base to decimal number
I need help decoding Google map polyline ASCII characters to decimal point. Can someone please help, I have tried few example on NI website but they do not produce desired results. I need something that is going to work like Googles decoder utility h