Trouble compiling in "release64/debug64" configuration

Hello,
A few months back I wrote a code in LabWindows/CVI to generate a DLL that then I open with Matlab. I had 32-bit version as my OS. Everything was OK I was happy with it. Recently I had to switch to 64-bit OS because of physical memory problems. I updated Matlab to 64-bit and I installed a more recent version of LabVIEW (togerther with LabWindows/CVI) 2013 Fall release, which is still 32-bit.
Now in this configuration, I cannot generate the DLL from my LabWindows/CVI code. I am using the "release64" (or "debug64") modality but I get this error message "Library Load Error": the list of errors include for example "Cannot find 64-bit program file for library 'NIIMAQdx'." and many others together with this one. In my code I am actually using this library (NI-IMAQdx) in fact I cannot compile the code.
What can I do? Is it just a problem of 64-bit version libraries? Is there a way to have support for 64-bit version libraries? How can I create my DLL if there is no support for such libraries in the 64-bit version OS? Is the latest version of LabWindows/CVI based on 32-bit or 64-bit processor? Does this make any difference?
In advance, thanks very much,
Nicolino

Hello,
Thanks for the answer... I downloaded and installed the latest verison on LabVIEW and LabWindows/CVI for 64-bit version OS, together with the latest drivers. So I now have the latest NI-IMAQdx drivers. But still I have exactly the same problem with creating my DLL: "Library Load Error" is always there for exactly the same libraries. In particular, I am using NI-IMAQdx and NI-vision, which apparently are not supported for 64-bit version.
From another forum, I found the 64-bit version for NIIMAQdx.lib and with this "unsupported" version of the library I solved part of my problems. Still, I have not found a NIvision.lib library 64-bit version available on line.
Do you know if there is a version available (even if not supported)? Can I replace that with something similar (even if that would mean to change my code)?
Thanks very much,
Nicolino

Similar Messages

  • Trouble compiling PHP extension w/ threaded PHP 5.2.4

    Hello,
    I'm having some trouble installing the Berkeley DB XML PHP extension on Debian Sarge 3.1.
    First, I installed Berkeley DB XML 2.3.10 using the buildall.sh script into /usr/local/dbxml-2.3.10/.
    Then, I downloaded PHP 5.2.4 source code, compiled it using pthreads (configure --enable-maintainer-zts) and installed it in /usr/local/php-5.2.4/.
    I've built the db4.so extension and it seems to work (verified by running the example simple_counter.php script and seeing that the counter is incremented).
    However, building the Berkeley DB XML extension fails with the following error:
    /home/dbxml-2.3.10/dbxml/src/php/php_dbxml_eventreadertowriter.cpp: In function `void zim_XmlEventReaderToWriter_XmlEventReaderToWriter(int, zval*, zval**, zval*, int, void***)':
    /home/dbxml-2.3.10/dbxml/src/php/php_dbxml_eventreadertowriter.cpp:27: error: parse error before `*' token
    /home/dbxml-2.3.10/dbxml/src/php/php_dbxml_eventreadertowriter.cpp:27: error: `reader' declared as reference but not initialized
    /home/dbxml-2.3.10/dbxml/src/php/php_dbxml_eventreadertowriter.cpp:29: error: parse error before `*' token
    /home/dbxml-2.3.10/dbxml/src/php/php_dbxml_eventreadertowriter.cpp:29: error: `writer' declared as reference but not initialized
    It's solved by changing TSRMLS_DC to TSRMLS_CC in these two lines:
    26 XmlEventReader &reader =
    27 php_dbxml_get_XmlEventReader_object_pointer(rval TSRMLS_CC);
    28 XmlEventWriter &writer =
    29 php_dbxml_get_XmlEventWriter_object_pointer(wval TSRMLS_CC);
    However, there are still errors:
    /usr/local/php-5.2.4/include/php/Zend/zend_exceptions.h: In function `void php_dbxml_init_exceptions()':
    /usr/local/php-5.2.4/include/php/Zend/zend_exceptions.h:33: error: too few arguments to function `zend_class_entry* zend_exception_get_default(void***)'
    /home/loumz/xspc2/dbxml-2.3.10/dbxml/src/php/php_dbxml_exception.cpp:25: error: at this point in file
    /home/loumz/xspc2/dbxml-2.3.10/dbxml/src/php/php_dbxml_exception.cpp:25: error: `tsrm_ls' undeclared (first use this function)
    /home/loumz/xspc2/dbxml-2.3.10/dbxml/src/php/php_dbxml_exception.cpp:25: error: (Each undeclared identifier is reported only once for each function it appears in.)
    This is because maybe zend_exception_get_default needs the tsrm_ls (what is this anyway? some sort of thread-local storage pointer?)
    OK, but inside the php_dbxml_init_exceptions() there is no pointer so it is fixed with a fetch (also there is another one like that on line 51):
    22 void php_dbxml_init_exceptions()
    23 {
    24 zend_class_entry ce;
    25 TSRMLS_FETCH();
    26 PHP_DBXML_REGISTER_CLASS_WITH_PARENT(XmlException, zend_exception_get_default(TSRMLS_C), php_dbxml_XmlException_dtor);
    49 zval *xml_ex;
    50 TSRMLS_FETCH();
    51 MAKE_STD_ZVAL(xml_ex);
    In php_dbxml_document.cpp there is also use of TSRMLS_DC inside code that leads to errors (Looking at the macro definition I think this is for declarations right?) so we change it.
    80 XmlEventWriter &writer = php_dbxml_get_XmlEventWriter_object_pointer(zv TSRMLS_CC);
    103 XmlEventReader &reader = php_dbxml_get_XmlEventReader_object_pointer(zstr TSRMLS_CC);
    And finally it compiled and worked (judging by the examples anyway).
    Please tell me if I did something wrong along the way. Is it better to compile PHP without ZTS and compile BDB XML without pthreads to avoid this mess?

    It seems like that was not the end of the troubles. When executing examples/10.php php crashes with a relocation error saying that it can't find php_db4_getDbEnvFromObj (which should be in the db4.so php module).
    OK, so I grab the g++ linking command that the libtool invocation spits out and add the installed db4.so to the object files and the extension diretory to rpath (I don't know if I can use the config.m4 because the db4.so has no lib prefix i.e. libdb4.so). Now ldd reports that it's linking correctly to the installed db4.so so I try again. The same relocation error pops up.
    When I checked, it seems like db4.so has C++ mangled symbol of php_db4_getDbEnvFromObj(_zval_struct*, void***), but not the C form, and dbxml.so is expecting the C form because it includes php_db4.h inside extern "C".
    This is probably because while the header php_db4.h is included within extern "C" {} within the db4.cpp impl file, the prototypes don't match (there is one additional param in the impl) between the ones in the header and the ones in the .cpp file because of the threading additions...
    Why do I get the feeling the compilation w/ threaded PHP has not been tested at all :-(. I give up, I'm compiling a nonthreaded version of PHP instead. For my use, this shouldn't matter anyway, but it would be nice if it was possible (or at least say it's not quite tested in the README file).

  • Trouble Compiling my Email-client

    Hi
    I have written this email -client, but have some trouble compiling it !
    Then I try to compile it the following errors:
    MailClient.java:350: <identifier> expected
    public syncronize void mails(String t){
    ^
    MailClient.java:727: ';' expected
    private class myWindowListener extends WindowAdapter{
    ^
    MailClient.java:747: '}' expected
    3 errors.
    What do I need to change to correct these errors ?
    I hope that there is somebody out there who can help me get my program to work.
    Thanks in advance.
    Sincrely Yours
    Fred
    import java.io.*;
    import java.awt.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    public class MailClient extends JFrame implements ActionListener{ 
    private Sendman mySendman;
    private Letterman myLetterman;
    public Writer myWrite;
    public Reader myReader;
    public Composer myComposer;
    private Setup mySetup;
    public Addressbook myAdressbook;
    private FixTask myFixTask;
    private Filter myFilter;
    private Info myInfo;
    public Vector mailIndexVector = new Vector();
    public Vector filterIndexVector = new Vector();
    public Vector folderVector = new Vector();
    private JPanel tArea, trae, icon, tField;
    private JTextArea ta;
    private JScrollPane view, treeScroll;
    private JTree tree;
    public JTextField tf;
    private JSplitPane split;
    private Dimension Size;
    private MailClient myMailClient;
    private String mailBody, subject, from;
    public boolean fromOutbox = false;
    public boolean viewSource = false;
    public static void main (String[] args) {
         MailClient myMailClient = new MailClient();
    public MailClient() {
         super("Mail-Client");
         ImageIcon linux = new ImageIcon("linux.gif");
         this.setIconImage(linux.getImage());
         icon = new JPanel();
         icon.setLayout(new FlowLayout(FlowLayout.LEFT));
         ImageIcon neu = new ImageIcon("getmail.gif");
         JButton neueMails = new JButton(neu);
         newMails.setActionCommand("Getting new Mails");
         newMails.addActionListener(this);
         newMails.setBorderPainted(false);
         newMails.setToolTipText("Getting new Mails");
         ImageIcon cr = new ImageIcon("creator.gif");
         JButton creator = new JButton(cr);
         creator.setActionCommand("Creator open");
         creator.addActionListener(this);
         creator.setBorderPainted(false);
         creator.setToolTipText("Creator open");
         JButton rep = new JButton(new ImageIcon("reply.gif"));
         rep.setActionCommand("rep");
         rep.addActionListener(this);
         rep.setBorderPainted(false);
         rep.setToolTipText("Reply");
         JButton fwd = new JButton(new ImageIcon("fwd.gif"));
         fwd.setActionCommand("fwd");
         fwd.addActionListener(this);
         fwd.setBorderPainted(false);
         fwd.setToolTipText("Forward");
         JButton ein = new JButton(new ImageIcon("settings.gif"));
         ein.setActionCommand("settings open");
         ein.addActionListener(this);
         ein.setBorderPainted(false);
    ein.setToolTipText("Setting open");
    JButton adr = new JButton(new ImageIcon("adressbook.gif"));
    adr.setActionCommand("adr");
    adr.addActionListener(this);
    adr.setBorderPainted(false);
    adr.setToolTipText("Addressbook");
    JButton lo = new JButton(new ImageIcon("trash.gif"));
    lo.setActionCommand("trash");
    lo.addActionListener(this);
    lo.setBorderPainted(false);
    lo.setToolTipText("trash");
    JButton in = new JButton(new ImageIcon("info.gif"));
    in.setActionCommand("Information");
    in.addActionListener(this);
    in.setBorderPainted(false);
    in.setToolTipText("Information");
    icon.add(newMails);
    icon.add(creator);
    icon.add(rep);
    icon.add(fwd);
    icon.add(set);
    icon.add(adr);
    icon.add(lo);
    icon.add(in);
    Vector h1 = myLeser.lese("Summary.4on");
    for(int i=0; i<h1.size(); i+=7){
    String id = h1.elementAt(i).toString();
    String fo = h1.elementAt(i+1).toString();
    String su = h1.elementAt(i+2).toString();
    String fr = h1.elementAt(i+3).toString();
    String to = h1.elementAt(i+4).toString();
    String da = h1.elementAt(i+5).toString();
    String re = h1.elementAt(i+6).toString();
    MailIndex index = new MailIndex(id, fo, su, fr, to, da, re);
    mailIndexVector.addElement(index);
    Vector h2 = myReader.read("Filter.4on");
    for(int j=0; j<h2.size(); j+=3){
    String fo = h2.elementAt(j).toString();
    String from = h2.elementAt(j+1).toString();
    String te = h2.elementAt(j+2).toString();
    FilterIndex index = new FilterIndex(fo, from, te);
    filterIndexVector.addElement(index);
    folderVector = myReader.read("Folder.4on");
    DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
    top = new DefaultMutableTreeNode("mails");
    top.add(inbox = new DefaultMutableTreeNode("Inbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Inbox"))
         inbox.add(new DefaultMutableTreeNode(m));
    top.add(outbox = new DefaultMutableTreeNode("Outbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Outbox")){
         outbox.add(new DefaultMutableTreeNode(m));
    top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Sentbox"))
         sentbox.add(new DefaultMutableTreeNode(m));
    for(int j=0; j<folderVector.size(); j++){
    top.add(trash =
         new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
    for(int i=0; i<mailIndexVector.size(); i++){
         MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
         if (m.folder.equals(folderVector.elementAt(j).toString()))
         trash.add(new DefaultMutableTreeNode(m));
    tree = new JTree(top);
    tree.getSelectionModel().setSelectionMode
    (TreeSelectionModel.SINGLE_TREE_SELECTION);
    tree.addTreeSelectionListener(new myTreeSelectionListener());
    treeScroll = new JScrollPane(tree);
    treeScroll.setFont(new Font("Monospaced",Font.PLAIN,6));
    baum.add("Center", treeScroll);
    MainMenu menuBar = new MainMenu(this, this);
    setJMenuBar(menuBar);
    setVisible(true);
    public void mailsFetcher() {
    myLetterman = new Letterman(this, mySetup);
    myLetterman.start();
    public void treeNewSign(){
    trae.remove(treeScroll);     
    DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
    top = new DefaultMutableTreeNode("mails");
    top.add(inbox = new DefaultMutableTreeNode("Inbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Inbox"))
         inbox.add(new DefaultMutableTreeNode(m));
    top.add(outbox = new DefaultMutableTreeNode("Outbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Outbox"))
         outbox.add(new DefaultMutableTreeNode(m));
    top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Sentbox"))
         sentbox.add(new DefaultMutableTreeNode(m));
    for(int j=0; j<folderVector.size(); j++){
    top.add(trash =
         new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
    for(int i=0; i<mailIndexVector.size(); i++){
         MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
         if (m.folder.equals(folderVector.elementAt(j).toString()))
         trash.add(new DefaultMutableTreeNode(m));
    tree = new JTree(top);
    tree.getSelectionModel().setSelectionMode
    (TreeSelectionModel.SINGLE_TREE_SELECTION);
    tree.addTreeSelectionListener(new myTreeSelectionListener());
    treeScroll = new JScrollPane(tree);
    trae.add("Center", treeScroll);
    trae.repaint();
    setVisible(true);
    public void menuNewSign(){
    setJMenuBar(new MainMenu(this, this));
    setVisible(true);
    public String fromFilter (String t){
    String myFrom = "";
    int start, end;
    int a = t.indexOf("From:");
    if (a != -1){
    start = a + 6;
    ende = t.indexOf("\n",start);
    myFrom = t.substring(start,end);
    return myFrom;
    public String toFilter (String t){
    String myTo = "";
    int start, e1, e2, end;
    int a = t.indexOf("To:");
    if (a != -1){
    start = a + 4;
    end = t.indexOf("\n",start);
    myTo = t.substring(start,end);
    e1 = end + 1;
    if(t.substring(e1,e1+1).equals(" ")){
         while(t.substring(e1,e1+1).equals(" ")){
         while(t.substring(e1,e1+1).equals(" "))
         e1++;
         e2 = t.indexOf("\n",e1);
         myTo += " " + t.substring(e1,e2);
         e1 = e2 + 1;
    return myTo;
    public String dateFilter (String t){
    String myDate = "";
    int start, end;
    int a = t.indexOf("Date:");
    if (a != -1){
    start = a + 6;
    end = t.indexOf("\n",start);
    myDate = t.substring(start,end);
    return myDate;
    public String subjectFilter (String t){
    String mySubject = "";
    int start, end;
    int a = t.indexOf("Subject:");
    if (a != -1){
    start = a + 9;
    end = t.indexOf("\n",start);
    mySubject = t.substring(start,end);
    return mySubject;
    public String mailFilter (String t){ 
    String myMail = "";
    int start = 0, end = t.length();
    start = t.indexOf("\n\n") + 2;
    if (start != 1){
    int a = t.indexOf("\n\n" ,start);
    if (a != -1){
         if (t.indexOf(".",a+2) == a+2)
         if (t.indexOf("\n",a+3) == a+3)
         start = a;
    myMail = t.substring(start,end);
    return myMail;
    public void mailsRemark(String file){
    String mail = "", t = "";
    Vector mailVector = myReader.read(file);
    for (int i=0; i<mailVector.size(); i++)
    t += (String)mailVector.elementAt(i) + "\n";
    from = fromFilter(t);
    subject = subjectFilter(t);
    mailBody = mailFilter(t);
    mail += "Subject: " + subject + "\n";
    mail += "Date: " + dateFilter(t) + "\n";
    mail += "From: " + from + "\n";
    mail += "To: " + toFilter(t) + "\n";
    mail += "\n" + mailBody;
    if(viewSource == true)
    ta.setText(t);
    else
    ta.setText(mail);
    public syncronize void mails(String t){
    Status myStatus = new Status(this,t);
    myStatus.start();
    public void delete(){
    if(tree.getLastSelectedPathComponent() != null){
    DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
    if(node.isLeaf()){
         Object nodeInfo = node.getUserObject();
         if(nodeInfo instanceof MailIndex){
         MailIndex index = (MailIndex)nodeInfo;
         mailIndexVector.removeElement(index);
         int count = 0;
         for(int j=0; j<mailIndexVector.size(); j++){
         MailIndex index1 = (MailIndex)mailIndexVector.elementAt(j);
         String id = index1.mailId;
         if(id.equals(index.mailId))
         count++;
         if(count == 0){
         File home = new File(".");
         String mailsRemark = "." + home.separator + "data";
         File datei = new File(mailsRemark, index.mailId);
         datei.delete();
         treeNewSign();
         menuNewSign();
         else{
         String t = (String)nodeInfo;
         boolean toDelete = false;
         for (int i=0; i<folderVector.size(); i++){
         if(folderVector.elementAt(i).equals(t)){
         folderVector.removeElement(t);
         konnteLoeschen = true;
         if(toDelete == false){
         message("This folder can not be deleted!");
         treeNewSign();
    else
         message("Folder is not Empty! Please delete Your mails.");
    else
    message("No Mails where selected to be deleted!");
    public void forward(){
    if(from != null){
    creatorOeffnen();
    myCreator.tfSb.setText("Fwd to: " + subject);
    myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
                   "\n\n>\n>\n\n");
    public void reply(){
    if(from != null){
    creatorOeffnen();
    myCreator.tfTo.setText(from);
    myCreator.tfSb.setText("Reply to: " + subject);
    myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
                   "\n\n>\n>\n\n");
    public void end(){
    String h = "";
    for (int i=0; i<mailIndexVector.size(); i++){
    MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
    h += index.mailId + "\n";
    h += index.folder + "\n";
    h += index.subject + "\n";
    h += index.from + "\n";
    h += index.to + "\n";
    h += index.date + "\n";
    h += index.read + "\n";
    myWriter.writer(h,"Summary.4on");
    String w = "";
    for (int l=0; l<filterIndexVector.size(); l++){
    FilterIndex index = (FilterIndex)filterIndexVector.elementAt(l);
    w += index.folder + "\n";
    w += index.from + "\n";
    w += index.text + "\n";
    myWriter.write(w,"Filter.4on");
    String k = "";
    for(int j=0; j<folderVector.size(); j++)
    k += folderVector.elementAt(j).toString() + "\n";
    myWriter.writer(k,"Folder.4on");
    String t = "";
    for (int l=0; l<myAddressBook.addressIndexVector.size(); l++){
    AddressIndex aindex =
         (AddressIndex)myAdressBook.adressIndexVector.elementAt(l);
    t += aindex.alias + "\n";
    t += aindex.email + "\n";
    myWriter.write(t,"Address.4on");
    setVisible(false);
    dispose();
    System.exit(0);
    public void filterOpen(){
    boolean test = false;
    if(tree.getLastSelectedPathComponent() != null){
    DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
    Object nodeInfo = node.getUserObject();
    if(nodeInfo instanceof String){
         myFilter.folder = (String)nodeInfo;
         for(int i=0; i<filterIndexVector.size(); i++){
         FilterIndex h = (FilterIndex)filterIndexVector.elementAt(i);
         if(h.folder.equals(nodeInfo)){
         myFilter.index = h;
         test = true;
         if(h.from.equals("")){
         myFilter.box1 = false;
         myFilter.fTf.setText("");
         myFilter.fBox.setSelected(false);
         myFilter.fTf.setEditable(false);
         else{
         myFilter.box1 = true;
         myFilter.fTf.setText(h.from);
         myFilter.fBox.setSelected(true);
         myFilter.fTf.setEditable(true);
         if(h.text.equals("")){
         myFilter.box2 = false;
         myFilter.tTf.setText("");
         myFilter.tBox.setSelected(false);
         myFilter.tTf.setEditable(false);
         else{
         myFilter.box2 = true;
         myFilter.tTf.setText(h.text);
         myFilter.tBox.setSelected(true);
         myFilter.tTf.setEditable(true);
         break;
    myFilter.setVisible(true);
    myFilter.fBox.requestFocus();
    else
    meldung("No selection");
    public void sendOutbox(){
    fromOutbox = true;
    int i;
    Block1:
    for(i=0; i<mailIndexVector.size(); i++){
    MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
    if(index.folder.equals("Outbox")){
         Vector mailVector = myReader.read(index.mailId);
    Block2:
         for(int j=0; j<mailVector.size(); j++){
         String m = (String)mailVector.elementAt(j);
         if(m.indexOf("Subject:") != -1){
         for(int k=0; k<=j+1; k++){
         mailVector.removeElementAt(0);
         break Block2;
         Vector toVector = new Vector();
         int tEnd = 1;
         String line = "";
         String t = index.to;
         while (tEnd != -1){
         tEnd = t.indexOf(", ");
         if (tEnd == -1)
         line = t;
         else
         line = t.substring(0,tEnd);
         t = t.substring(tEnd + 1);
         toVector.addElement(line);
         File home = new File(".");
         String mailsVerzeichnis = "." + home.separator + "data";
         File datei = new File(mailsRemark, index.mailId);
         datei.delete();
         mySendman = new Sendman(mailVector, toVector, index.subject,
         ailsAnzeig               mySetup, this);
         mySendman.start();
         mailIndexVector.removeElement(index);
         break Block1;
    if(i == mailIndexVector.size())
    fromOutbox = false;
    treeNewSign();
    public void partion(String cmd){
    if(tree.getLastSelectedPathComponent() != null){
    DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
    Object nodeInfo = node.getUserObject();
    if(nodeInfo instanceof MailIndex){
         MailIndex index = (MailIndex)nodeInfo;
         index.folder = cmd.substring(13).toString();
         treeNewSign();
    else
    meldung("No mails to partion!");
    public void SetupOpen(){
    if (mySetup.savePassword == false)
    mySetup.pTf.setText("");
    mySetup.setVisible(true);
    mySetup.aTf.requestFocus();
    public void addressbookOpen(){
    myAddressBook.setVisible(true);
    myAdressBook.tree.requestFocus();
    public void creatorOpen(){
    myCreator.setVisible(true);
    myCreator.tfTo.requestFocus();
    public void actionPerformed(ActionEvent event){
    Object obj = event.getSource();
    if (obj instanceof JMenuItem){
    String cmd = event.getActionCommand();
    if (cmd.equals("New fetched")){
         mailsfetch();
    else if (cmd.equals("Written new mails")) {
         creatorOpen();
    else if (cmd.equals("Reply")) {
         reply();
    else if (cmd.equals("Forward")) {
         forward();
    else if (cmd.equals("Outbox")) {
         sendOutbox();
    else if (cmd.equals("Delete")) {
         delete();
    else if ((cmd.length() >13) &&
         (cmd.substring(0,13).equals("Sorting-"))){
         sorting(cmd);
    else if (cmd.equals("Using Addressbook")){
         addressbookOpen();
    else if (cmd.equals("Filter working")){
         filterOpen();
    else if (cmd.equals("New Order")){
         myFixTask.tf.setText("");
         myFixTask.setVisible(true);
         myFixTask.tf.requestFocus();
    else if (cmd.equals("delete")){
         delete();
    else if ((cmd.length() >7) &&
         (cmd.substring(0,7).equals("nobody"))){
         if(viewSource == false){
         viewSource = true;
         menuNewSign();
         if(tree.getLastSelectedPathComponent() != null){
         DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
         Object nodeInfo = node.getUserObject();
         if(nodeInfo instanceof MailIndex){
         MailIndex index = (MailIndex)nodeInfo;
         mailsRemark(index.mailId);
         else{
         viewSource = false;
         menuNeuZeichnen();
         if(tree.getLastSelectedPathComponent() != null){
         DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
         Object nodeInfo = node.getUserObject();
         if(nodeInfo instanceof MailIndex){
         MailIndex index = (MailIndex)nodeInfo;
         mailsRemark(index.mailId);
    else if (cmd.equals("Setup")){
         SetupOpen();
    else if (obj instanceof JButton){
    String cmd = event.getActionCommand();
    if (cmd.equals("aga")){
         mailsHolen();
    else if (cmd.equals("Creator Open")){
         creatorOpem();
    else if(cmd.equals("rep")){
         reply();
    else if(cmd.equals("fwd")){
         forward();
    else if(cmd.equals("Setup Open")){
    SetupOpen();
    else if(cmd.equals("adr")){
         addressbookOpen();
    else if(cmd.equals("delete")){
         delete();
    else if(cmd.equals("Information")){
         myInfo.setVisible(true);
         myInfo.b.requestFocus();
    private class myWindowListener extends WindowAdapter{
    public void windowClosing(WindowEvent event){
    end();
    private class myTreeSelectionListener implements TreeSelectionListener{
    public void valueChanged(TreeSelectionEvent e) {
    DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)(e.getPath().getLastPathComponent());
    Object nodeInfo = node.getUserObject();
    if(nodeInfo instanceof MailIndex){
         MailIndex index = (MailIndex)nodeInfo;
         mailsAnzeigen(index.mailId);
         index.read = "Yes";

    Some suggestions:
    1. as the others stated- you should really post specific questions rather than 1 huge ugly class!
    2. use code tags
    3. get a decent IDE- it would take about 1 minute to then see where the error is-
    4. the rrors were just misspelled 'synchronized' and missing argument ','
    5. Try not to make such huge classes!!- Try to follow certain coding "patterns"- like MVC- and not stick everything in 1 class- separate the functionality- it makes coding much easier!
    here is fixed code (at least gets rid of those last errors):
    import java.io.*;
    import java.awt.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    public class MailClient extends JFrame implements ActionListener{
      private Sendman mySendman;
      private Letterman myLetterman;
      public Writer myWrite;
      public Reader myReader;
      public Composer myComposer;
      private Setup mySetup;
      public Addressbook myAdressbook;
      private FixTask myFixTask;
      private Filter myFilter;
      private Info myInfo;
      public Vector mailIndexVector = new Vector();
      public Vector filterIndexVector = new Vector();
      public Vector folderVector = new Vector();
      private JPanel tArea, trae, icon, tField;
      private JTextArea ta;
      private JScrollPane view, treeScroll;
      private JTree tree;
      public JTextField tf;
      private JSplitPane split;
      private Dimension Size;
      private MailClient myMailClient;
      private String mailBody, subject, from;
      public boolean fromOutbox = false;
      public boolean viewSource = false;
      public static void main (String[] args) {
        MailClient myMailClient = new MailClient();
      public MailClient() {
        super("Mail-Client");
        ImageIcon linux = new ImageIcon("linux.gif");
        this.setIconImage(linux.getImage());
        icon = new JPanel();
        icon.setLayout(new FlowLayout(FlowLayout.LEFT));
        ImageIcon neu = new ImageIcon("getmail.gif");
        JButton neueMails = new JButton(neu);
        newMails.setActionCommand("Getting new Mails");
        newMails.addActionListener(this);
        newMails.setBorderPainted(false);
        newMails.setToolTipText("Getting new Mails");
        ImageIcon cr = new ImageIcon("creator.gif");
        JButton creator = new JButton(cr);
        creator.setActionCommand("Creator open");
        creator.addActionListener(this);
        creator.setBorderPainted(false);
        creator.setToolTipText("Creator open");
        JButton rep = new JButton(new ImageIcon("reply.gif"));
        rep.setActionCommand("rep");
        rep.addActionListener(this);
        rep.setBorderPainted(false);
        rep.setToolTipText("Reply");
        JButton fwd = new JButton(new ImageIcon("fwd.gif"));
        fwd.setActionCommand("fwd");
        fwd.addActionListener(this);
        fwd.setBorderPainted(false);
        fwd.setToolTipText("Forward");
        JButton ein = new JButton(new ImageIcon("settings.gif"));
        ein.setActionCommand("settings open");
        ein.addActionListener(this);
        ein.setBorderPainted(false);
        ein.setToolTipText("Setting open");
        JButton adr = new JButton(new ImageIcon("adressbook.gif"));
        adr.setActionCommand("adr");
        adr.addActionListener(this);
        adr.setBorderPainted(false);
        adr.setToolTipText("Addressbook");
        JButton lo = new JButton(new ImageIcon("trash.gif"));
        lo.setActionCommand("trash");
        lo.addActionListener(this);
        lo.setBorderPainted(false);
        lo.setToolTipText("trash");
        JButton in = new JButton(new ImageIcon("info.gif"));
        in.setActionCommand("Information");
        in.addActionListener(this);
        in.setBorderPainted(false);
        in.setToolTipText("Information");
        icon.add(newMails);
        icon.add(creator);
        icon.add(rep);
        icon.add(fwd);
        icon.add(set);
        icon.add(adr);
        icon.add(lo);
        icon.add(in);
        Vector h1 = myLeser.lese("Summary.4on");
        for(int i=0; i<h1.size(); i+=7){
          String id = h1.elementAt(i).toString();
          String fo = h1.elementAt(i+1).toString();
          String su = h1.elementAt(i+2).toString();
          String fr = h1.elementAt(i+3).toString();
          String to = h1.elementAt(i+4).toString();
          String da = h1.elementAt(i+5).toString();
          String re = h1.elementAt(i+6).toString();
          MailIndex index = new MailIndex(id, fo, su, fr, to, da, re);
          mailIndexVector.addElement(index);
        Vector h2 = myReader.read("Filter.4on");
        for(int j=0; j<h2.size(); j+=3){
          String fo = h2.elementAt(j).toString();
          String from = h2.elementAt(j+1).toString();
          String te = h2.elementAt(j+2).toString();
          FilterIndex index = new FilterIndex(fo, from, te);
          filterIndexVector.addElement(index);
        folderVector = myReader.read("Folder.4on");
        DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
        top = new DefaultMutableTreeNode("mails");
        top.add(inbox = new DefaultMutableTreeNode("Inbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Inbox"))
            inbox.add(new DefaultMutableTreeNode(m));
        top.add(outbox = new DefaultMutableTreeNode("Outbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Outbox")){
            outbox.add(new DefaultMutableTreeNode(m));
        top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Sentbox"))
            sentbox.add(new DefaultMutableTreeNode(m));
        for(int j=0; j<folderVector.size(); j++){
          top.add(trash =
          new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
          for(int i=0; i<mailIndexVector.size(); i++){
            MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
            if (m.folder.equals(folderVector.elementAt(j).toString()))
              trash.add(new DefaultMutableTreeNode(m));
        tree = new JTree(top);
        tree.getSelectionModel().setSelectionMode
        (TreeSelectionModel.SINGLE_TREE_SELECTION);
        tree.addTreeSelectionListener(new myTreeSelectionListener());
        treeScroll = new JScrollPane(tree);
        treeScroll.setFont(new Font("Monospaced",Font.PLAIN,6));
        baum.add("Center", treeScroll);
        MainMenu menuBar = new MainMenu(this, this);
        setJMenuBar(menuBar);
        setVisible(true);
      public void mailsFetcher() {
        myLetterman = new Letterman(this, mySetup);
        myLetterman.start();
      public void treeNewSign(){
        trae.remove(treeScroll);
        DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
        top = new DefaultMutableTreeNode("mails");
        top.add(inbox = new DefaultMutableTreeNode("Inbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Inbox"))
            inbox.add(new DefaultMutableTreeNode(m));
        top.add(outbox = new DefaultMutableTreeNode("Outbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Outbox"))
            outbox.add(new DefaultMutableTreeNode(m));
        top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Sentbox"))
            sentbox.add(new DefaultMutableTreeNode(m));
        for(int j=0; j<folderVector.size(); j++){
          top.add(trash =
          new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
          for(int i=0; i<mailIndexVector.size(); i++){
            MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
            if (m.folder.equals(folderVector.elementAt(j).toString()))
              trash.add(new DefaultMutableTreeNode(m));
        tree = new JTree(top);
        tree.getSelectionModel().setSelectionMode
        (TreeSelectionModel.SINGLE_TREE_SELECTION);
        tree.addTreeSelectionListener(new myTreeSelectionListener());
        treeScroll = new JScrollPane(tree);
        trae.add("Center", treeScroll);
        trae.repaint();
        setVisible(true);
      public void menuNewSign(){
        setJMenuBar(new MainMenu(this, this));
        setVisible(true);
      public String fromFilter (String t){
        String myFrom = "";
        int start, end;
        int a = t.indexOf("From:");
        if (a != -1){
          start = a + 6;
          ende = t.indexOf("\n",start);
          myFrom = t.substring(start,end);
        return myFrom;
      public String toFilter (String t){
        String myTo = "";
        int start, e1, e2, end;
        int a = t.indexOf("To:");
        if (a != -1){
          start = a + 4;
          end = t.indexOf("\n",start);
          myTo = t.substring(start,end);
          e1 = end + 1;
          if(t.substring(e1,e1+1).equals(" ")){
            while(t.substring(e1,e1+1).equals(" ")){
              while(t.substring(e1,e1+1).equals(" "))
                e1++;
              e2 = t.indexOf("\n",e1);
              myTo += " " + t.substring(e1,e2);
              e1 = e2 + 1;
        return myTo;
      public String dateFilter (String t){
        String myDate = "";
        int start, end;
        int a = t.indexOf("Date:");
        if (a != -1){
          start = a + 6;
          end = t.indexOf("\n",start);
          myDate = t.substring(start,end);
        return myDate;
      public String subjectFilter (String t){
        String mySubject = "";
        int start, end;
        int a = t.indexOf("Subject:");
        if (a != -1){
          start = a + 9;
          end = t.indexOf("\n",start);
          mySubject = t.substring(start,end);
        return mySubject;
      public String mailFilter (String t){
        String myMail = "";
        int start = 0, end = t.length();
        start = t.indexOf("\n\n") + 2;
        if (start != 1){
          int a = t.indexOf("\n\n" ,start);
          if (a != -1){
            if (t.indexOf(".",a+2) == a+2)
              if (t.indexOf("\n",a+3) == a+3)
                start = a;
          myMail = t.substring(start,end);
        return myMail;
      public void mailsRemark(String file){
        String mail = "", t = "";
        Vector mailVector = myReader.read(file);
        for (int i=0; i<mailVector.size(); i++)
          t += (String)mailVector.elementAt(i) + "\n";
        from = fromFilter(t);
        subject = subjectFilter(t);
        mailBody = mailFilter(t);
        mail += "Subject: " + subject + "\n";
        mail += "Date: " + dateFilter(t) + "\n";
        mail += "From: " + from + "\n";
        mail += "To: " + toFilter(t) + "\n";
        mail += "\n" + mailBody;
        if(viewSource == true)
          ta.setText(t);
        else
          ta.setText(mail);
      public synchronized void mails(String t){
        Status myStatus = new Status(this,t);
        myStatus.start();
      public void delete(){
        if(tree.getLastSelectedPathComponent() != null){
          DefaultMutableTreeNode node =
              (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
          if(node.isLeaf()){
            Object nodeInfo = node.getUserObject();
            if(nodeInfo instanceof MailIndex){
              MailIndex index = (MailIndex)nodeInfo;
              mailIndexVector.removeElement(index);
              int count = 0;
              for(int j=0; j<mailIndexVector.size(); j++){
                MailIndex index1 = (MailIndex)mailIndexVector.elementAt(j);
                String id = index1.mailId;
                if(id.equals(index.mailId))
                  count++;
              if(count == 0){
                File home = new File(".");
                String mailsRemark = "." + home.separator + "data";
                File datei = new File(mailsRemark, index.mailId);
                datei.delete();
              treeNewSign();
              menuNewSign();
            else{
              String t = (String)nodeInfo;
              boolean toDelete = false;
              for (int i=0; i<folderVector.size(); i++){
                if(folderVector.elementAt(i).equals(t)){
                  folderVector.removeElement(t);
                  konnteLoeschen = true;
              if(toDelete == false){
                message("This folder can not be deleted!");
              treeNewSign();
          else
            message("Folder is not Empty! Please delete Your mails.");
        else
          message("No Mails where selected to be deleted!");
      public void forward(){
        if(from != null){
          creatorOeffnen();
          myCreator.tfSb.setText("Fwd to: " + subject);
          myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
                               "\n\n>\n>\n\n");
      public void reply(){
        if(from != null){
          creatorOeffnen();
          myCreator.tfTo.setText(from);
          myCreator.tfSb.setText("Reply to: " + subject);
          myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
                               "\n\n>\n>\n\n");
      public void end(){
        String h = "";
        for (int i=0; i<mailIndexVector.size(); i++){
          MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
          h += index.mailId + "\n";
          h += index.folder + "\n";
          h += index.subject + "\n";
          h += index.from + "\n";
          h += index.to + "\n";
          h += index.date + "\n";
          h += index.read + "\n";
        myWriter.writer(h,"Summary.4on");
        String w = "";
        for (int l=0; l<filterIndexVector.size(); l++){
          FilterIndex index = (FilterIndex)filterIndexVector.elementAt(l);
          w += index.folder + "\n";
          w += index.from + "\n";
          w += index.text + "\n";
        myWriter.write(w,"Filter.4on");
        String k = "";
        for(int j=0; j<folderVector.size(); j++)
          k += folderVector.elementAt(j).toString() + "\n";
        myWriter.writer(k,"Folder.4on");
        String t = "";
        for (int l=0; l<myAddressBook.addressIndexVector.size(); l++){
          AddressIndex aindex =
                   (AddressIndex)myAdressBook.adressIndexVector.elementAt(l);
          t += aindex.alias + "\n";
          t += aindex.email + "\n";
        myWriter.write(t,"Address.4on");
        setVisible(false);
        dispose();
        System.exit(0);
      public void filterOpen(){
        boolean test = false;
        if(tree.getLastSelectedPathComponent() != null){
          DefaultMutableTreeNode node =
              (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
          Object nodeInfo = node.getUserObject();
          if(nodeInfo instanceof String){
            myFilter.folder = (String)nodeInfo;
            for(int i=0; i<filterIndexVector.size(); i++){
              FilterIndex h = (FilterIndex)filterIndexVector.elementAt(i);
              if(h.folder.equals(nodeInfo)){
                myFilter.index = h;
                test = true;
                if(h.from.equals("")){
                  myFilter.box1 = false;
                  myFilter.fTf.setText("");
                  myFilter.fBox.setSelected(false);
                  myFilter.fTf.setEditable(false);
                else{
                  myFilter.box1 = true;
                  myFilter.fTf.setText(h.from);
                  myFilter.fBox.setSelected(true);
                  myFilter.fTf.setEditable(true);
                if(h.text.equals("")){
                  myFilter.box2 = false;
                  myFilter.tTf.setText("");
                  myFilter.tBox.setSelected(false);
                  myFilter.tTf.setEditable(false);
                else{
                  myFilter.box2 = true;
                  myFilter.tTf.setText(h.text);
                  myFilter.tBox.setSelected(true);
                  myFilter.tTf.setEditable(true);
                break;
          myFilter.setVisible(true);
          myFilter.fBox.requestFocus();
        else
          meldung("No selection");
      public void sendOutbox(){
        fromOutbox = true;
        int i;
        Block1:
        for(i=0; i<mailIndexVector.size(); i++){
          MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
          if(index.folder.equals("Outbox")){
            Vector mailVector = myReader.read(index.mailId);
            Block2:
            for(int j=0; j<mailVector.size(); j++){
              String m = (String)mailVector.elementAt(j);
              if(m.indexOf("Subject:") != -1){
                for(int k=0; k<=j+1; k++){
                  mailVector.removeElementAt(0);
                break Block2;
            Vector toVector = new Vector();
            int tEnd = 1;
            String line = "";
            String t = index.to;
            while (tEnd != -1){
              tEnd = t.indexOf(", ");
              if (tEnd == -1)
                line = t;
              else
                line = t.substring(0,tEnd);
              t = t.substring(tEnd + 1);
              toVector.addElement(line);
            File home = new File(".");
            String mailsVerzeichnis = "." + home.separator + "data";
            File datei = new File(mailsRemark, index.mailId);
            datei.delete();
            mySendman = new Sendman(mailVector, toVector, index.subject,ailsAnzeig, mySetup, this);
            mySendman.start();
            mailIndexVector.removeElement(index);
            break Block1;
        if(i == mailIndexVector.size())
          fromOutbox = false;
        treeNewSign();
      public void partion(String cmd){
        if(tree.getLastSelectedPathComponent() != null){
          DefaultMutableTreeNode node =
              (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
          Object nodeInfo = node.getUserObject();
          if(nodeInfo instanceof MailIndex){
            MailIndex index = (MailIndex)nodeInfo;
            index.folder = cmd.substring(13).toString();
            treeNewSign();
        else
          meldung("No mails to partion!");
      public void SetupOpen(){
        if (mySetup.savePassword == false)
          mySetup.pTf.setText("");
        mySetup.setVisible(true);
        mySetup.aTf.requestFocus();
      public void addressbookOpen(){
        myAddressBook.setVisible(true);
        myAdressBook.tree.requestFocus();
      public void creatorOpen(){
        myCreator.setVisible(true);
        myCreator.tfTo.requestFocus();
      public void actionPerformed(ActionEvent event){
        Object obj = event.getSource();
        if (obj instanceof JMenuItem){
          String cmd = event.getActionCommand();
          if (cmd.equals("New fetched")){
            mailsfetch();
          else if (cmd.equals("Written new mails")) {
            creatorOpen();
          else if (cmd.equals("Reply")) {
            reply();
          else if (cmd.equals("Forward")) {
            forward();
          else if (cmd.equals("Outbox")) {
            sendOutbox();
          else if (cmd.equals("Delete")) {
            delete();
          else if ((cmd.length() >13) &&
                   (cmd.substring(0,13).equals("Sorting-"))){
            sorting(cmd);
          else if (cmd.equals("Using Addressbook")){
            addressbookOpen();
          else if (cmd.equals("Filter working")){
            filterOpen();
          else if (cmd.equals("New Order")){
            myFixTask.tf.setText("");
            myFixTask.setVisible(true);
            myFixTask.tf.requestFocus();
          else if (cmd.equals("delete")){
            delete();
          else if ((cmd.length() >7) &&
                   (cmd.substring(0,7).equals("nobody"))){
            if(viewSource == false){
              viewSource = true;
              menuNewSign();
              if(tree.getLastSelectedPathComponent() != null){
                DefaultMutableTreeNode node =
                    (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                Object nodeInfo = node.getUserObject();
                if(nodeInfo instanceof MailIndex){
                  MailIndex index = (MailIndex)nodeInfo;
                  mailsRemark(index.mailId);
            else{
              viewSource = false;
              menuNeuZeichnen();
              if(tree.getLastSelectedPathComponent() != null){
                DefaultMutableTreeNode node =
                    (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                Object nodeInfo = node.getUserObject();
                if(nodeInfo instanceof MailIndex){
                  MailIndex index = (MailIndex)nodeInfo;
                  mailsRemark(index.mailId);
          else if (cmd.equals("Setup")){
            SetupOpen();
        else if (obj instanceof JButton){
          String cmd = event.getActionCommand();
          if (cmd.equals("aga")){
            mailsHolen();
          else if (cmd.equals("Creator Open")){
            creatorOpem();
          else if(cmd.equals("rep")){
            reply();
          else if(cmd.equals("fwd")){
            forward();
          else if(cmd.equals("Setup Open")){
            SetupOpen();
          else if(cmd.equals("adr")){
            addressbookOpen();
          else if(cmd.equals("delete")){
            delete();
          else if(cmd.equals("Information")){
            myInfo.setVisible(true);
            myInfo.b.requestFocus();
      private class myWindowListener extends WindowAdapter{
        public void windowClosing(WindowEvent event){
          end();
      private class myTreeSelectionListener implements TreeSelectionListener{
        public void valueChanged(TreeSelectionEvent e) {
          DefaultMutableTreeNode node =
              (DefaultMutableTreeNode)(e.getPath().getLastPathComponent());
          Object nodeInfo = node.getUserObject();
          if(nodeInfo instanceof MailIndex){
            MailIndex index = (MailIndex)nodeInfo;
            mailsAnzeigen(index.mailId);
            index.read = "Yes";
    }

  • Trouble compiling for printed documentation

    hello, i am having trouble compiling a new document layout i
    have created, i have followed peter grainges instructions on his
    website but it always fails to generate straight away. Im using
    Robohelp x5 with word 2000, does anyone have any ideas?
    thanks steve

    Steve
    Was RH installed on the PC you are using with you logon or
    that of the person whose job you have taken over? It sounds very
    much like the latter and this is exactly what I would expect to
    happen.
    Try creating a new project with just a couple of topics and
    printing from that. It will likely also fail. If it does that
    pretty much confirms my theory. Uninstall and reinstall RH with
    your logon and with admin rights attached and the problem will
    likely go away.

  • Trouble compiling a stored procedure

    Hello, I have trouble compiling a stored procedure. I include part of the code because I think the key problem is illustrated in these lines:
    date1 is declared as a DATE.
    index_value2 NUMBER;
    BEGIN
    date1 := (select sysdate from dual);
    index_value2 := (select index_value from tmsdat.a_index_values where price_date < (SELECT sysdate -180
       FROM dual) and price_date > (SELECT sysdate -210
       FROM dual));
    [\code]
    The problem seems to be that a more complex syntax is included in the allocation statement (:=), can that be the case? That is, no select etc??
    How is this solved?
    Any help much appreciated!
    best regards
    Harald                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Well, actually WhiteHat´s magic did the trick, but two errors:
    temp := (select (to_number(to_char(sysdate, 'DD'))-1)/(decode(to_char(sysdate,'MM'),'02',28,30)) as result
       from dual);
    [\code]
    this line generates problems but I think the approach is the same maybe, that is:
    select to_number(to_char(sysdate, 'DD'))-1)/(decode(to_char(sysdate,'MM'),'02',28,30)) into temp as result frmo dual
    Further, some error about encountering end of line?
    END CONVERT_MARKET_INDEX;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Trouble compiling fractal viewer Quat

    I was busy trying to compile Quat, but ./configure spew these sed errors at me.
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets ${MAKE}... yes
    checking for gcc... gcc
    checking for C compiler default output... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking for a BSD-compatible install... /bin/install -c
    checking for gawk... (cached) gawk
    checking whether ln -s works... yes
    checking for ranlib... ranlib
    checking for gcc option to accept ANSI C... none needed
    checking for an ANSI C-conforming const... yes
    checking for inline... inline
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for stdlib.h... (cached) yes
    checking for working malloc... yes
    checking for memmove... yes
    checking for memset... yes
    checking for strchr... yes
    checking for strrchr... yes
    checking for strstr... yes
    checking for strtod... yes
    checking for strtol... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking whether the C compiler supports -Wall... yes
    checking whether the C compiler supports -O3... yes
    checking whether the C compiler supports -ffast-math... yes
    checking for library containing pow... -lm
    checking for floor... yes
    checking for pow... yes
    checking for sqrt... yes
    checking zlib.h usability... yes
    checking zlib.h presence... yes
    checking for zlib.h... yes
    checking for gzopen in -lz... yes
    checking for fltk-config... /usr/bin/fltk-config
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking whether the C++ compiler supports -Wall... yes
    checking whether the C++ compiler supports -fno-exceptions... yes
    checking whether the C++ compiler supports -fno-rtti... yes
    checking whether the C++ compiler supports -O3... yes
    checking whether the C++ compiler supports -ffast-math... yes
    checking whether the C++ compiler needs std::... yes
    checking for M_PI... yes
    checking whether Fl_Pixmap needs const char*const*... no
    configure: creating ./config.status
    config.status: creating Makefile
    sed: file /tmp/cszLfEEN/subs-3.sed line 3: unknown command: `['
    sed: file /tmp/cszLfEEN/subs-2.sed line 27: unterminated `s' command
    config.status: creating doc/Makefile
    sed: file /tmp/cszLfEEN/subs-3.sed line 3: unknown command: `['
    sed: file /tmp/cszLfEEN/subs-2.sed line 27: unterminated `s' command
    config.status: creating kernel/Makefile
    sed: file /tmp/cszLfEEN/subs-3.sed line 3: unknown command: `['
    sed: file /tmp/cszLfEEN/subs-2.sed line 27: unterminated `s' command
    config.status: creating gui/Makefile
    sed: file /tmp/cszLfEEN/subs-2.sed line 27: unterminated `s' command
    sed: file /tmp/cszLfEEN/subs-3.sed line 3: unknown command: `['
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing default-1 commands
    I'm not a dev or programmer, but I'm willing to learn. Some pointers on how to solve these kinds of problems should be enough to get me going.
    EDIT: To help you help me help us all, here's a link where you can find the quat source.
    Last edited by cephalopoid (2010-12-24 14:50:26)

    $ makepkg
    ==> Making package: quat 1.20-1 (Fri Dec 24 16:05:47 CET 2010)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Downloading quat-1.20.tar.gz...
    --2010-12-24 16:05:47-- http://www.physcip.uni-stuttgart.de/phy11733/download/quat-1.20.tar.gz
    Resolving www.physcip.uni-stuttgart.de... 129.69.74.129
    Connecting to www.physcip.uni-stuttgart.de|129.69.74.129|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 474448 (463K) [application/x-tar]
    Saving to: "quat-1.20.tar.gz.part"
    100%[===================================================================================================>] 474,448 601K/s in 0.8s
    2010-12-24 16:05:48 (601 KB/s) - "quat-1.20.tar.gz.part" saved [474448/474448]
    ==> Validating source files with md5sums...
    quat-1.20.tar.gz ... Passed
    ==> Extracting Sources...
    -> Extracting quat-1.20.tar.gz with bsdtar
    ==> Starting build()...
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets ${MAKE}... yes
    checking for gcc... gcc
    checking for C compiler default output... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking for a BSD-compatible install... /bin/install -c
    checking for gawk... (cached) gawk
    checking whether ln -s works... yes
    checking for ranlib... ranlib
    checking for gcc option to accept ANSI C... none needed
    checking for an ANSI C-conforming const... yes
    checking for inline... inline
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for stdlib.h... (cached) yes
    checking for working malloc... yes
    checking for memmove... yes
    checking for memset... yes
    checking for strchr... yes
    checking for strrchr... yes
    checking for strstr... yes
    checking for strtod... yes
    checking for strtol... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking whether the C compiler supports -Wall... yes
    checking whether the C compiler supports -O3... yes
    checking whether the C compiler supports -ffast-math... yes
    checking for library containing pow... -lm
    checking for floor... yes
    checking for pow... yes
    checking for sqrt... yes
    checking zlib.h usability... yes
    checking zlib.h presence... yes
    checking for zlib.h... yes
    checking for gzopen in -lz... yes
    checking for fltk-config... /usr/bin/fltk-config
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking whether the C++ compiler supports -Wall... yes
    checking whether the C++ compiler supports -fno-exceptions... yes
    checking whether the C++ compiler supports -fno-rtti... yes
    checking whether the C++ compiler supports -O3... yes
    checking whether the C++ compiler supports -ffast-math... yes
    checking whether the C++ compiler needs std::... yes
    checking for M_PI... yes
    checking whether Fl_Pixmap needs const char*const*... no
    configure: creating ./config.status
    config.status: creating Makefile
    sed: file /tmp/csbcz6kX/subs-3.sed line 3: unknown command: `['
    sed: file /tmp/csbcz6kX/subs-2.sed line 27: unterminated `s' command
    config.status: creating doc/Makefile
    sed: file /tmp/csbcz6kX/subs-3.sed line 3: unknown command: `['
    sed: file /tmp/csbcz6kX/subs-2.sed line 27: unterminated `s' command
    config.status: creating kernel/Makefile
    sed: file /tmp/csbcz6kX/subs-3.sed line 3: unknown command: `['
    sed: file /tmp/csbcz6kX/subs-2.sed line 27: unterminated `s' command
    config.status: creating gui/Makefile
    sed: file /tmp/csbcz6kX/subs-2.sed line 27: unterminated `s' command
    sed: file /tmp/csbcz6kX/subs-3.sed line 3: unknown command: `['
    config.status: creating config.h
    config.status: executing default-1 commands
    make: *** No targets. Stop.
    Aborting...
    Doesn't build here for some reason...

  • Trouble compiling OpenSceneGraph

    Hi there!
    In order to compile the latest FlightGear, I need to compile OpenSceneGraph. I know, it's in the repos, but that's how it goes. Now it always stops compiling after complaining during configuration:
    CMake Warning at /usr/share/cmake-2.8/Modules/FindITK.cmake:48 (find_package):
    Could not find a package configuration file named "ITKConfig.cmake"
    provided by package "ITK".
    Add the installation prefix of "ITK" to CMAKE_PREFIX_PATH or set "ITK_DIR"
    to a directory containing one of the above files. If "ITK" provides a
    separate development package or SDK, be sure it has been installed.
    Call Stack (most recent call first):
    CMakeLists.txt:465 (FIND_PACKAGE)
    I've been looking and searching all over the web, but I can't find any "itk"-package! (Or sdk for that matter!)
    What is it and where can I find it?
    Very grateful for any hints!
    Edit:
    Maybe this is useful info too:
    [ 61%] Building CXX object src/osgPlugins/gif/CMakeFiles/osgdb_gif.dir/ReaderWriterGIF.o
    /media/FG/git/OpenSceneGraph/src/osgPlugins/gif/ReaderWriterGIF.cpp: In Funktion »unsigned char* simage_gif_load(std::istream&, int*, int*, int*, GifImageStream**)«:
    /media/FG/git/OpenSceneGraph/src/osgPlugins/gif/ReaderWriterGIF.cpp:373:44: Fehler: zu wenige Argumente für Funktion »GifFileType* DGifOpen(void*, InputFunc, int*)«
    giffile = DGifOpen(&fin,gif_read_stream);
    ^
    In file included from /media/FG/git/OpenSceneGraph/src/osgPlugins/gif/ReaderWriterGIF.cpp:53:0:
    /usr/include/gif_lib.h:181:14: Anmerkung: hier deklariert
    GifFileType *DGifOpen(void *userPtr, InputFunc readFunc, int *Error); /* new one (TVT) */
    ^
    src/osgPlugins/gif/CMakeFiles/osgdb_gif.dir/build.make:57: recipe for target 'src/osgPlugins/gif/CMakeFiles/osgdb_gif.dir/ReaderWriterGIF.o' failed
    make[2]: *** [src/osgPlugins/gif/CMakeFiles/osgdb_gif.dir/ReaderWriterGIF.o] Error 1
    CMakeFiles/Makefile2:3846: recipe for target 'src/osgPlugins/gif/CMakeFiles/osgdb_gif.dir/all' failed
    make[1]: *** [src/osgPlugins/gif/CMakeFiles/osgdb_gif.dir/all] Error 2
    Last edited by chris_blues (2013-10-23 13:45:47)

    Still no luck! AUR/openscenegraph-svn also doesn't compile...
    It throws thousands of errors:
    [ 13%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/tristripper/src/tri_stripper.o
    In file included from /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/tri_stripper.h:41:0,
    from /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:10:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/public_types.h:21:10: Fehler: »size_t« bezeichnet keinen Typ
    typedef size_t index;
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/public_types.h:22:22: Fehler: »index« wurde in diesem Gültigkeitsbereich nicht definiert
    typedef std::vector<index> indices;
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/public_types.h:22:27: Fehler: Templateargument 1 ist ungültig
    typedef std::vector<index> indices;
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/public_types.h:22:27: Fehler: Templateargument 2 ist ungültig
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/public_types.h:22:36: Fehler: invalid type in declaration before »;« token
    typedef std::vector<index> indices;
    ^
    In file included from /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/tri_stripper.h:43:0,
    from /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:10:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:38:12: Fehler: »index« wurde nicht deklariert
    void push(index i, bool CountCacheHit = false);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:45:21: Fehler: »index« wurde in diesem Gültigkeitsbereich nicht definiert
    typedef std::deque<index> indices_deque;
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:45:26: Fehler: Templateargument 1 ist ungültig
    typedef std::deque<index> indices_deque;
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:45:26: Fehler: Templateargument 2 ist ungültig
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h: In Elementfunktion »void triangle_stripper::detail::cache_simulator::clear()«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:71:10: Fehler: Abfrage des Elementes »clear« in »((triangle_stripper::detail::cache_simulator*)this)->triangle_stripper::detail::cache_simulator::m_Cache«, das vom Nicht-Klassentyp »triangle_stripper::detail::cache_simulator::indices_deque {aka int}« ist
    m_Cache.clear();
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h: In Elementfunktion »void triangle_stripper::detail::cache_simulator::resize(size_t)«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:77:10: Fehler: Abfrage des Elementes »resize« in »((triangle_stripper::detail::cache_simulator*)this)->triangle_stripper::detail::cache_simulator::m_Cache«, das vom Nicht-Klassentyp »triangle_stripper::detail::cache_simulator::indices_deque {aka int}« ist
    m_Cache.resize(Size, (std::numeric_limits<index>::max)());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:77:44: Fehler: »index« wurde in diesem Gültigkeitsbereich nicht definiert
    m_Cache.resize(Size, (std::numeric_limits<index>::max)());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:77:49: Fehler: Templateargument 1 ist ungültig
    m_Cache.resize(Size, (std::numeric_limits<index>::max)());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h: In Elementfunktion »void triangle_stripper::detail::cache_simulator::reset()«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:83:20: Fehler: Abfrage des Elementes »begin« in »((triangle_stripper::detail::cache_simulator*)this)->triangle_stripper::detail::cache_simulator::m_Cache«, das vom Nicht-Klassentyp »triangle_stripper::detail::cache_simulator::indices_deque {aka int}« ist
    std::fill(m_Cache.begin(), m_Cache.end(), (std::numeric_limits<index>::max)());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:83:37: Fehler: Abfrage des Elementes »end« in »((triangle_stripper::detail::cache_simulator*)this)->triangle_stripper::detail::cache_simulator::m_Cache«, das vom Nicht-Klassentyp »triangle_stripper::detail::cache_simulator::indices_deque {aka int}« ist
    std::fill(m_Cache.begin(), m_Cache.end(), (std::numeric_limits<index>::max)());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:83:65: Fehler: »index« wurde in diesem Gültigkeitsbereich nicht definiert
    std::fill(m_Cache.begin(), m_Cache.end(), (std::numeric_limits<index>::max)());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:83:70: Fehler: Templateargument 1 ist ungültig
    std::fill(m_Cache.begin(), m_Cache.end(), (std::numeric_limits<index>::max)());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h: In Elementfunktion »size_t triangle_stripper::detail::cache_simulator::size() const«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:96:17: Fehler: Abfrage des Elementes »size« in »((const triangle_stripper::detail::cache_simulator*)this)->triangle_stripper::detail::cache_simulator::m_Cache«, das vom Nicht-Klassentyp »const indices_deque {aka const int}« ist
    return m_Cache.size();
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h: Im globalen Gültigkeitsbereich:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:100:41: Fehler: »index« bezeichnet keinen Typ
    inline void cache_simulator::push(const index i, const bool CountCacheHit)
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:100:47: Warnung: ISO-C++ verbietet Deklaration von »i« ohne Typ [-fpermissive]
    inline void cache_simulator::push(const index i, const bool CountCacheHit)
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h: In Elementfunktion »void triangle_stripper::detail::cache_simulator::push(int, bool)«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:104:25: Fehler: Abfrage des Elementes »begin« in »((triangle_stripper::detail::cache_simulator*)this)->triangle_stripper::detail::cache_simulator::m_Cache«, das vom Nicht-Klassentyp »triangle_stripper::detail::cache_simulator::indices_deque {aka int}« ist
    if (std::find(m_Cache.begin(), m_Cache.end(), i) != m_Cache.end()) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:104:42: Fehler: Abfrage des Elementes »end« in »((triangle_stripper::detail::cache_simulator*)this)->triangle_stripper::detail::cache_simulator::m_Cache«, das vom Nicht-Klassentyp »triangle_stripper::detail::cache_simulator::indices_deque {aka int}« ist
    if (std::find(m_Cache.begin(), m_Cache.end(), i) != m_Cache.end()) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:104:63: Fehler: Abfrage des Elementes »end« in »((triangle_stripper::detail::cache_simulator*)this)->triangle_stripper::detail::cache_simulator::m_Cache«, das vom Nicht-Klassentyp »triangle_stripper::detail::cache_simulator::indices_deque {aka int}« ist
    if (std::find(m_Cache.begin(), m_Cache.end(), i) != m_Cache.end()) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:117:10: Fehler: Abfrage des Elementes »push_front« in »((triangle_stripper::detail::cache_simulator*)this)->triangle_stripper::detail::cache_simulator::m_Cache«, das vom Nicht-Klassentyp »triangle_stripper::detail::cache_simulator::indices_deque {aka int}« ist
    m_Cache.push_front(i);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:118:10: Fehler: Abfrage des Elementes »pop_back« in »((triangle_stripper::detail::cache_simulator*)this)->triangle_stripper::detail::cache_simulator::m_Cache«, das vom Nicht-Klassentyp »triangle_stripper::detail::cache_simulator::indices_deque {aka int}« ist
    m_Cache.pop_back();
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h: In Elementfunktion »void triangle_stripper::detail::cache_simulator::merge(const triangle_stripper::detail::cache_simulator&, size_t)«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:127:26: Fehler: ungültige Typen »const indices_deque {aka const int}[size_t {aka long unsigned int}]« für Feldindex
    push(Backward.m_Cache[i], true);
    ^
    In file included from /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/tri_stripper.h:46:0,
    from /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:10:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h: Im globalen Gültigkeitsbereich:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:27:17: Fehler: expected »)« before »A«
    triangle(index A, index B, index C)
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:34:2: Fehler: »index« bezeichnet keinen Typ
    index A() const { return m_A; }
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:35:2: Fehler: »index« bezeichnet keinen Typ
    index B() const { return m_B; }
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:36:2: Fehler: »index« bezeichnet keinen Typ
    index C() const { return m_C; }
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:39:2: Fehler: »index« bezeichnet keinen Typ
    index m_A;
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:40:2: Fehler: »index« bezeichnet keinen Typ
    index m_B;
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:41:2: Fehler: »index« bezeichnet keinen Typ
    index m_C;
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:51:22: Fehler: expected »)« before »A«
    triangle_edge(index A, index B)
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:54:2: Fehler: »index« bezeichnet keinen Typ
    index A() const { return m_A; }
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:55:2: Fehler: »index« bezeichnet keinen Typ
    index B() const { return m_B; }
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:62:2: Fehler: »index« bezeichnet keinen Typ
    index m_A;
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:63:2: Fehler: »index« bezeichnet keinen Typ
    index m_B;
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h: In Elementfunktion »bool triangle_stripper::detail::triangle_edge::operator==(const triangle_stripper::detail::triangle_edge&) const«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:58:14: Fehler: »A« wurde in diesem Gültigkeitsbereich nicht definiert
    return ((A() == Right.A()) && (B() == Right.B()));
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:58:25: Fehler: »const class triangle_stripper::detail::triangle_edge« hat kein Element namens »A«
    return ((A() == Right.A()) && (B() == Right.B()));
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:58:36: Fehler: »B« wurde in diesem Gültigkeitsbereich nicht definiert
    return ((A() == Right.A()) && (B() == Right.B()));
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:58:47: Fehler: »const class triangle_stripper::detail::triangle_edge« hat kein Element namens »B«
    return ((A() == Right.A()) && (B() == Right.B()));
    ^
    In file included from /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:10:0:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/tri_stripper.h: Im globalen Gültigkeitsbereich:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/tri_stripper.h:111:16: Fehler: »index« wurde nicht deklariert
    void AddIndex(index i, bool NotSimulation);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/tri_stripper.h:112:20: Fehler: »index« wurde nicht deklariert
    void BackAddIndex(index i);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp: In Konstruktor »triangle_stripper::tri_stripper::tri_stripper(const indices&)«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:28:27: Fehler: Abfrage des Elementes »size« in »TriIndices«, das vom Nicht-Klassentyp »const indices {aka const int}« ist
    : m_Triangles(TriIndices.size() / 3), // Silently ignore extra indices if (Indices.size() % 3 != 0)
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp: In Elementfunktion »triangle_stripper::detail::strip triangle_stripper::tri_stripper::BackExtendToStrip(size_t, triangle_stripper::detail::triangle_order, bool)«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:219:53: Fehler: »class triangle_stripper::detail::triangle_edge« hat kein Element namens »B«
    BackAddIndex(LastEdge(* m_Triangles[Start], Order).B());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp: In Elementfunktion »triangle_stripper::tri_stripper::const_link_iterator triangle_stripper::tri_stripper::LinkToNeighbour(triangle_stripper::tri_stripper::const_tri_iterator, bool, triangle_stripper::detail::triangle_order&, bool)«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:306:15: Fehler: »const class triangle_stripper::detail::triangle_edge« hat kein Element namens »B«
    if ((Edge.B() == Tri.A()) && (Edge.A() == Tri.B())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:306:26: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    if ((Edge.B() == Tri.A()) && (Edge.A() == Tri.B())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:306:40: Fehler: »const class triangle_stripper::detail::triangle_edge« hat kein Element namens »A«
    if ((Edge.B() == Tri.A()) && (Edge.A() == Tri.B())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:306:51: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    if ((Edge.B() == Tri.A()) && (Edge.A() == Tri.B())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:308:19: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    AddIndex(Tri.C(), NotSimulation);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:312:20: Fehler: »const class triangle_stripper::detail::triangle_edge« hat kein Element namens »B«
    else if ((Edge.B() == Tri.B()) && (Edge.A() == Tri.C())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:312:31: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    else if ((Edge.B() == Tri.B()) && (Edge.A() == Tri.C())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:312:45: Fehler: »const class triangle_stripper::detail::triangle_edge« hat kein Element namens »A«
    else if ((Edge.B() == Tri.B()) && (Edge.A() == Tri.C())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:312:56: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    else if ((Edge.B() == Tri.B()) && (Edge.A() == Tri.C())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:314:19: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    AddIndex(Tri.A(), NotSimulation);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:318:20: Fehler: »const class triangle_stripper::detail::triangle_edge« hat kein Element namens »B«
    else if ((Edge.B() == Tri.C()) && (Edge.A() == Tri.A())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:318:31: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    else if ((Edge.B() == Tri.C()) && (Edge.A() == Tri.A())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:318:45: Fehler: »const class triangle_stripper::detail::triangle_edge« hat kein Element namens »A«
    else if ((Edge.B() == Tri.C()) && (Edge.A() == Tri.A())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:318:56: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    else if ((Edge.B() == Tri.C()) && (Edge.A() == Tri.A())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:320:19: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    AddIndex(Tri.B(), NotSimulation);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp: In Elementfunktion »triangle_stripper::tri_stripper::const_link_iterator triangle_stripper::tri_stripper::BackLinkToNeighbour(triangle_stripper::tri_stripper::const_tri_iterator, bool, triangle_stripper::detail::triangle_order&)«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:347:14: Fehler: »const class triangle_stripper::detail::triangle_edge« hat kein Element namens »B«
    if ((Edge.B() == Tri.A()) && (Edge.A() == Tri.B())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:347:25: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    if ((Edge.B() == Tri.A()) && (Edge.A() == Tri.B())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:347:39: Fehler: »const class triangle_stripper::detail::triangle_edge« hat kein Element namens »A«
    if ((Edge.B() == Tri.A()) && (Edge.A() == Tri.B())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:347:50: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    if ((Edge.B() == Tri.A()) && (Edge.A() == Tri.B())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:349:22: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    BackAddIndex(Tri.C());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:353:19: Fehler: »const class triangle_stripper::detail::triangle_edge« hat kein Element namens »B«
    else if ((Edge.B() == Tri.B()) && (Edge.A() == Tri.C())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:353:30: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    else if ((Edge.B() == Tri.B()) && (Edge.A() == Tri.C())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:353:44: Fehler: »const class triangle_stripper::detail::triangle_edge« hat kein Element namens »A«
    else if ((Edge.B() == Tri.B()) && (Edge.A() == Tri.C())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:353:55: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    else if ((Edge.B() == Tri.B()) && (Edge.A() == Tri.C())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:355:22: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    BackAddIndex(Tri.A());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:359:19: Fehler: »const class triangle_stripper::detail::triangle_edge« hat kein Element namens »B«
    else if ((Edge.B() == Tri.C()) && (Edge.A() == Tri.A())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:359:30: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    else if ((Edge.B() == Tri.C()) && (Edge.A() == Tri.A())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:359:44: Fehler: »const class triangle_stripper::detail::triangle_edge« hat kein Element namens »A«
    else if ((Edge.B() == Tri.C()) && (Edge.A() == Tri.A())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:359:55: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    else if ((Edge.B() == Tri.C()) && (Edge.A() == Tri.A())) {
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:361:22: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    BackAddIndex(Tri.B());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp: In statischer Elementfunktion »static triangle_stripper::detail::triangle_edge triangle_stripper::tri_stripper::FirstEdge(const triangle_stripper::detail::triangle&, triangle_stripper::detail::triangle_order)«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:409:33: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    return triangle_edge(Triangle.A(), Triangle.B());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:409:47: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    return triangle_edge(Triangle.A(), Triangle.B());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:412:33: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    return triangle_edge(Triangle.B(), Triangle.C());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:412:47: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    return triangle_edge(Triangle.B(), Triangle.C());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:415:33: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    return triangle_edge(Triangle.C(), Triangle.A());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:415:47: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    return triangle_edge(Triangle.C(), Triangle.A());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:419:28: Fehler: keine passende Funktion für Aufruf von »triangle_stripper::detail::triangle_edge::triangle_edge(int, int)«
    return triangle_edge(0, 0);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:419:28: Anmerkung: Kandidaten sind:
    In file included from /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/tri_stripper.h:46:0,
    from /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:10:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:48:7: Anmerkung: triangle_stripper::detail::triangle_edge::triangle_edge()
    class triangle_edge
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:48:7: Anmerkung: Kandidat erwartet 0 Argumente, 2 angegeben
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:48:7: Anmerkung: triangle_stripper::detail::triangle_edge::triangle_edge(const triangle_stripper::detail::triangle_edge&)
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:48:7: Anmerkung: Kandidat erwartet 1 Argument, 2 angegeben
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp: In statischer Elementfunktion »static triangle_stripper::detail::triangle_edge triangle_stripper::tri_stripper::LastEdge(const triangle_stripper::detail::triangle&, triangle_stripper::detail::triangle_order)«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:430:33: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    return triangle_edge(Triangle.B(), Triangle.C());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:430:47: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    return triangle_edge(Triangle.B(), Triangle.C());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:433:33: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    return triangle_edge(Triangle.C(), Triangle.A());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:433:47: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    return triangle_edge(Triangle.C(), Triangle.A());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:436:33: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    return triangle_edge(Triangle.A(), Triangle.B());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:436:47: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    return triangle_edge(Triangle.A(), Triangle.B());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:440:28: Fehler: keine passende Funktion für Aufruf von »triangle_stripper::detail::triangle_edge::triangle_edge(int, int)«
    return triangle_edge(0, 0);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:440:28: Anmerkung: Kandidaten sind:
    In file included from /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/tri_stripper.h:46:0,
    from /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:10:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:48:7: Anmerkung: triangle_stripper::detail::triangle_edge::triangle_edge()
    class triangle_edge
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:48:7: Anmerkung: Kandidat erwartet 0 Argumente, 2 angegeben
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:48:7: Anmerkung: triangle_stripper::detail::triangle_edge::triangle_edge(const triangle_stripper::detail::triangle_edge&)
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/types.h:48:7: Anmerkung: Kandidat erwartet 1 Argument, 2 angegeben
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp: Im globalen Gültigkeitsbereich:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:446:42: Fehler: »index« bezeichnet keinen Typ
    inline void tri_stripper::AddIndex(const index i, const bool NotSimulation)
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:446:48: Warnung: ISO-C++ verbietet Deklaration von »i« ohne Typ [-fpermissive]
    inline void tri_stripper::AddIndex(const index i, const bool NotSimulation)
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp: In Elementfunktion »void triangle_stripper::tri_stripper::AddIndex(int, bool)«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:452:37: Fehler: Abfrage des Elementes »push_back« in »((triangle_stripper::tri_stripper*)this)->triangle_stripper::tri_stripper::m_PrimitivesVector.std::vector<_Tp, _Alloc>::back<triangle_stripper::primitive_group, std::allocator<triangle_stripper::primitive_group> >().triangle_stripper::primitive_group::Indices«, das vom Nicht-Klassentyp »triangle_stripper::indices {aka int}« ist
    m_PrimitivesVector.back().Indices.push_back(i);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp: Im globalen Gültigkeitsbereich:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:457:46: Fehler: »index« bezeichnet keinen Typ
    inline void tri_stripper::BackAddIndex(const index i)
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:457:52: Warnung: ISO-C++ verbietet Deklaration von »i« ohne Typ [-fpermissive]
    inline void tri_stripper::BackAddIndex(const index i)
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp: In Elementfunktion »void triangle_stripper::tri_stripper::AddTriangle(const triangle_stripper::detail::triangle&, triangle_stripper::detail::triangle_order, bool)«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:470:16: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    AddIndex(Tri.A(), NotSimulation);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:471:16: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    AddIndex(Tri.B(), NotSimulation);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:472:16: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    AddIndex(Tri.C(), NotSimulation);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:476:16: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    AddIndex(Tri.B(), NotSimulation);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:477:16: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    AddIndex(Tri.C(), NotSimulation);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:478:16: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    AddIndex(Tri.A(), NotSimulation);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:482:16: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    AddIndex(Tri.C(), NotSimulation);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:483:16: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    AddIndex(Tri.A(), NotSimulation);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:484:16: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    AddIndex(Tri.B(), NotSimulation);
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp: In Elementfunktion »void triangle_stripper::tri_stripper::BackAddTriangle(const triangle_stripper::detail::triangle&, triangle_stripper::detail::triangle_order)«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:496:20: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    BackAddIndex(Tri.C());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:497:20: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    BackAddIndex(Tri.B());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:498:20: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    BackAddIndex(Tri.A());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:502:20: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    BackAddIndex(Tri.A());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:503:20: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    BackAddIndex(Tri.C());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:504:20: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    BackAddIndex(Tri.B());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:508:20: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »B«
    BackAddIndex(Tri.B());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:509:20: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »A«
    BackAddIndex(Tri.A());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:510:20: Fehler: »const class triangle_stripper::detail::triangle« hat kein Element namens »C«
    BackAddIndex(Tri.C());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp: In Elementfunktion »void triangle_stripper::tri_stripper::AddLeftTriangles()«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:527:12: Fehler: Abfrage des Elementes »push_back« in »Indices«, das vom Nicht-Klassentyp »triangle_stripper::indices {aka int}« ist
    Indices.push_back(m_Triangles[i]->A());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:527:38: Fehler: »class triangle_stripper::detail::triangle« hat kein Element namens »A«
    Indices.push_back(m_Triangles[i]->A());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:528:12: Fehler: Abfrage des Elementes »push_back« in »Indices«, das vom Nicht-Klassentyp »triangle_stripper::indices {aka int}« ist
    Indices.push_back(m_Triangles[i]->B());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:528:38: Fehler: »class triangle_stripper::detail::triangle« hat kein Element namens »B«
    Indices.push_back(m_Triangles[i]->B());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:529:12: Fehler: Abfrage des Elementes »push_back« in »Indices«, das vom Nicht-Klassentyp »triangle_stripper::indices {aka int}« ist
    Indices.push_back(m_Triangles[i]->C());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:529:38: Fehler: »class triangle_stripper::detail::triangle« hat kein Element namens »C«
    Indices.push_back(m_Triangles[i]->C());
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:533:14: Fehler: Abfrage des Elementes »size« in »Indices«, das vom Nicht-Klassentyp »triangle_stripper::indices {aka int}« ist
    if (Indices.size() == 0)
    ^
    In file included from /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/tri_stripper.h:43:0,
    from /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:10:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h: In Elementfunktion »size_t triangle_stripper::detail::cache_simulator::size() const«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/include/detail/cache_simulator.h:97:1: Warnung: Kontrollfluss erreicht Ende von Nicht-void-Funktion [-Wreturn-type]
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp: In statischer Elementfunktion »static triangle_stripper::detail::triangle_edge triangle_stripper::tri_stripper::LastEdge(const triangle_stripper::detail::triangle&, triangle_stripper::detail::triangle_order)«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:442:1: Warnung: Kontrollfluss erreicht Ende von Nicht-void-Funktion [-Wreturn-type]
    ^
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp: In statischer Elementfunktion »static triangle_stripper::detail::triangle_edge triangle_stripper::tri_stripper::FirstEdge(const triangle_stripper::detail::triangle&, triangle_stripper::detail::triangle_order)«:
    /tmp/yaourt-tmp-chris/aur-openscenegraph-svn/src/trunk/src/osgUtil/tristripper/src/tri_stripper.cpp:421:1: Warnung: Kontrollfluss erreicht Ende von Nicht-void-Funktion [-Wreturn-type]
    ^
    src/osgUtil/CMakeFiles/osgUtil.dir/build.make:839: recipe for target 'src/osgUtil/CMakeFiles/osgUtil.dir/tristripper/src/tri_stripper.o' failed
    make[2]: *** [src/osgUtil/CMakeFiles/osgUtil.dir/tristripper/src/tri_stripper.o] Error 1
    make[2]: *** Warte auf noch nicht beendete Prozesse...
    CMakeFiles/Makefile2:352: recipe for target 'src/osgUtil/CMakeFiles/osgUtil.dir/all' failed
    make[1]: *** [src/osgUtil/CMakeFiles/osgUtil.dir/all] Error 2
    Makefile:116: recipe for target 'all' failed
    make: *** [all] Error 2
    ==> FEHLER: Ein Fehler geschah in build().
    Breche ab ...
    ==> ERROR: Makepkg was unable to build openscenegraph-svn.
    ...I'm getting desperate...
    Edit:
    gotta go now. I'll be back later tonight.
    Thanks for all your help so far! Greatly appreciated!
    Last edited by chris_blues (2013-10-23 14:18:01)

  • Trouble compiling servlet example

    Hi All, I am trying out an example for servlets and I ran into trouble compiling the the file called "FormProcessingServlet.java" in tutorial located here: http://developer.java.sun.com/developer/onlineTraining/Servlets/Fundamentals/magercises/FormPostingAndProcessing/index.html
    The exact problem happens in this line:
    isStructure = context.getResourceAsStream(paramStructureFile[0]);
    The error says:
    FormProcessingServlet.java:127: cannot resolve symbol
    symbol : method getResourceAsStream (java.lang.String)
    location: interface javax.servlet.ServletContext
    isStructure = context.getResourceAsStream(paramStructureFile[0]);
    anyone else ran into this problem? How do I fix this? Thanks.

    "cannot resolve symbol" means that the JVM can't find a particular class.
    Adjust your systems classpath variable to include all the jar files that you use, I also add "." to include files in the current directory I'm working from.

  • Having trouble compiling

    I am a total newbie at programming and I am having trouble compiling. In the MS-DOS prompt, I located the folder where my .java file is located and typed the following:
    javac SampleProgram.java
    I received a "Bad command or file name" error. I am typing the names correctly. I am using Java 2 SDK, Standard Edition Version 1.3.1. Am I doing something wrong?
    Thanks for any help.

    That should fix it. The problem is that DOS needs to know where to find the executable files like javac.exe
    You can either set the path temporarily by typing
    SET PATH=.;c:\jdk1.3.1\bin
    at the command prompt each time you open a command window, or you can set it more permanently by adding it to your startup config. This will depend on your OS. On win 98 for example, there is an AUTOEXEC.BAT (usually with a SET PATH command already present). You could open this in notepad to add/change:
    SET PATH=C:\WINDOWS
    to
    SET PATH=C:\WINDOWS;.;C:\JDK1.3.1\BIN
    Reboot to make the changes take effect. Other OS's may have a special dialog to set this kind of command.
    Hope this helps some.

  • Trouble compiling package with JDK 1.4

    Hi,
    I just installed JDK 1.4 on a new machine, now I have trouble running compile scripts that used to work on my old machine. The old an new are configured with Win 2000. The following compiles without problem:
    javac -classpath "..." -d "..." "c:\.....\com\...\some package\MyClass.java"
    Changing this statemetn to:
    javac -classpath "..." -d "..." "c:\.....\com\...\some package\*.java"
    should compile all Java files in 'some package', instead what I get is the following error message:
    error: cannot read: c:\.....\com\...\some package\*.java
    The documentation says that this should still work. Anyone aware of changes in 1.4 that could cause this problem?
    Thanks for responding

    As a work-around, you can use some Unix-styled shell (that is, command processor) which expands the *.expression into the list of the matching file names, thus releaving javac from this task. (Caveat: directory names with a space inside will cause problems.)
    I can recommend the Cygnus package (including the command processor "bash") or "MinGW", the Minimalist GNU For Windows with its simpler sh:
    http://www.mingw.org/
    ftp://ftp.franken.de/pub/win32/develop/gnuwin32/mingw32/porters/Mikey/

  • Trouble compiling GTK

    Hi everyone,
    I'm trying to compile gtk+ 2.13.7, but Make fails with an error about libcairo.
    As far as I know, I've successfully compiled all of gtk's dependencies, but for
    some reason gtk is looking for libcairo in my X11 directory instead of in my
    /usr/local/lib directory. This is on OS X 10.5.4, and I've compiled everything
    myself (not using fink or darwin ports). Here's the last part of the Make output:
    <pre>
    Extracting /Users/jeff/Desktop/gtk+-2.13.7/gdk/x11/.libs/libgdk-x11.a
    (cd .libs/libgdk-x11-2.0.lax/libgdk-x11.a && ar x /Users/jberman/Downloads/forPan/gtk+-2.13.7/gdk/x11/.libs/libgdk-x11.a)
    sed 's,^,_,' < .libs/libgdk-x11-2.0.exp > .libs/libgdk-x11-2.0-symbols.expsym
    gcc -dynamiclib ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/libgdk-x11-2.0.0.1307.0.dylib .libs/gdk.o .libs/gdkapplaunchcontext.o .libs/gdkcairo.o .libs/gdkcolor.o .libs/gdkcursor.o .libs/gdkdisplay.o .libs/gdkdisplaymanager.o .libs/gdkdnd.o .libs/gdkdraw.o .libs/gdkevents.o .libs/gdkfont.o .libs/gdkgc.o .libs/gdkglobals.o .libs/gdkimage.o .libs/gdkkeys.o .libs/gdkkeyuni.o .libs/gdkpango.o .libs/gdkpixbuf-drawable.o .libs/gdkpixbuf-render.o .libs/gdkpixmap.o .libs/gdkpolyreg-generic.o .libs/gdkrectangle.o .libs/gdkregion-generic.o .libs/gdkrgb.o .libs/gdkscreen.o .libs/gdkselection.o .libs/gdkvisual.o .libs/gdkwindow.o .libs/gdkwindowimpl.o .libs/gdkenumtypes.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkapplaunchcontext-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkasync.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkcolor-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkcursor-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkdisplay-x11.o
    .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkdnd-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkdrawable-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkevents-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkfont-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkgc-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkgeometry-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkglobals-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkim-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkimage-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkinput-none.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkinput.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkkeys-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkmain-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkpixmap-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkproperty-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkscreen-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkselection-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkspawn-x11.o
    .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdktestutils-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkvisual-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkwindow-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkxftdefaults.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkxid.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/xsettings-client.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/xsettings-common.o -L/usr/X11/lib /usr/X11/lib/libXinerama.1.0.0.dylib /usr/X11/lib/libXdmcp.6.0.0.dylib /usr/X11/lib/libXau.6.0.0.dylib /usr/X11/lib/libXext.6.4.0.dylib /usr/X11/lib/libX11.6.2.0.dylib -L/usr/local/lib /usr/local/lib/libpangocairo-1.0.dylib /usr/local/lib/libcairo.dylib /usr/local/lib/libpng12.dylib /usr/X11/lib/libXrender.1.3.0.dylib /usr/X11/lib/libSM.6.0.0.dylib /usr/X11/lib/libICE.6.3.0.dylib /usr/local/lib/libpixman-1.dylib /usr/local/lib/libpangoft2-1.0.dylib /usr/local/lib/libfontconfig.dylib /usr/lib/libiconv.dylib /usr/local/lib/libfreetype.dylib /usr/lib/libz.dylib
    /usr/lib/libexpat.dylib /usr/local/lib/libpango-1.0.dylib /usr/lib/libc.dylib /usr/lib/libm.dylib /usr/X11/lib/libcairo.2.17.5.dylib /usr/X11/lib/libfreetype.dylib /usr/local/lib/libgio-2.0.dylib /usr/local/lib/libgobject-2.0.dylib /usr/local/lib/libgmodule-2.0.dylib /usr/local/lib/libglib-2.0.dylib /usr/local/lib/libintl.dylib /usr/X11/lib/libfontconfig.dylib -lm ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.dylib -install_name /usr/local/lib/libgdk-x11-2.0.0.dylib -compatibility_version 1308 -current_version 1308.0 -Wl,-single_module -Wl,-exportedsymbolslist,.libs/libgdk-x11-2.0-symbols.expsym
    i686-apple-darwin9-gcc-4.0.1: /usr/X11/lib/libcairo.2.17.5.dylib: No such file or directory
    make[4]: * [libgdk-x11-2.0.la] Error 1
    make[3]: * [all-recursive] Error 1
    make[2]: * [all] Error 2
    make[1]: * [all-recursive] Error 1
    make: * [all] Error 2
    </pre>
    Does anyone have any idea why it would suddenly look for libcairo in
    /usr/X11/lib when pango found the correct libcairo? Any ideas on how to get
    around this? A few months ago I actually successfully compiled GTK on a
    different Mac, so I know it can be done. Help!
    Thanks!

    I think you just need to do that for whatever library (or libraries) you want to explicitly direct it to.
    It might be easier first to try
    LDFLAGS="-L/path/to/your/lib"
    configure --help
    will tell you more about how explicitly to feed in the information.
    Nobody "needs" to use fink, but I find with stuff like gtk+2, which I care about only because I need it to run programs I am interested in, it is far easier to let an expert worry about how to make it work.
    What works or does not work out of the box is highly package-dependent. As time goes on, more and more developers try to make their stuff work out of the box for OS X.
    Here's the version of gtk+2 I have installed with fink, fwiw:
    fink list gtk+2
    Information about 7126 packages read in 1 seconds.
    i gtk+2 2.12.11-2 The Gimp Toolkit
    Not quite as new as 2.14, but a lot closer. (I use fink "unstable", which more accurately translates to "current.")
    There are several vocal people who post here who think no one should use fink or darwinports. It is simply a matter of personal preference. But if you want to roll your own, sometimes it is worth peaking to see how the packages are tweaked by the fink maintainers (browse the .info files).

  • Trouble compiling Intel 2.9.1 driver

    Hello. I have an HP G62 laptop with onboard intel graphics. After I installed Arch I had a problem. Enabling KMS would make my screen go black on boot (and stay black). Not enabling KMS would make X refuse to start since the new Intel drivers require KMS. Therefore, I decided to roll back to the 2.9.1 driver. I browsed the Package Database, found my driver at here:
    http://repos.archlinux.org/wsvn/package … &peg=56808
    I downloaded the PKGBUILD and LICENSE, and ran "makepkg -s". After installing dependencies, everything was rolling until makepkg encountered errors:
    ==> Making package: xf86-video-intel 2.9.1-1 (Wed Sep 15 23:12:40 EEST 2010)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
      -> Downloading xf86-video-intel-2.9.1.tar.bz2...
    --2010-09-15 23:12:41--  http://xorg.freedesktop.org//releases/i … .1.tar.bz2
    Resolving xorg.freedesktop.org... 131.252.210.176
    Connecting to xorg.freedesktop.org|131.252.210.176|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 789001 (771K) [application/x-bzip2]
    Saving to: "xf86-video-intel-2.9.1.tar.bz2.part"
    100%[==========================================>] 789,001     9.26K/s   in 80s     
    2010-09-15 23:14:06 (9.59 KB/s) - "xf86-video-intel-2.9.1.tar.bz2.part" saved [789001/789001]
      -> Found LICENSE
    ==> Validating source files with md5sums...
        xf86-video-intel-2.9.1.tar.bz2 ... Passed
        LICENSE ... Passed
    ==> Extracting Sources...
      -> Extracting xf86-video-intel-2.9.1.tar.bz2 with bsdtar
    ==> Entering fakeroot environment...
    ==> Starting build()...
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for fgrep... /bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for ar... ar
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    checking for bash... /bin/bash
    checking if dolt supports this host... yes, replacing libtool
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking whether gcc and cc understand -c and -o together... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for GEN4ASM... no
    checking sys/mman.h usability... yes
    checking sys/mman.h presence... yes
    checking for sys/mman.h... yes
    checking for mprotect... yes
    checking if XINERAMA is defined... yes
    checking if RANDR is defined... yes
    checking if RENDER is defined... yes
    checking if XF86DRI is defined... yes
    checking if DPMSExtension is defined... yes
    checking for XORG... yes
    checking for XEXT... yes
    checking for ANSI C header files... (cached) yes
    checking whether to include DRI support... checking for /usr/include/xorg/dri.h... yes
    checking for /usr/include/xorg/sarea.h... yes
    checking for /usr/include/xorg/dristruct.h... yes
    checking whether to include DRI support... yes
    checking for PCIACCESS... yes
    checking for DRM... yes
    checking for DRI... yes
    checking for XVMCLIB... yes
    checking whether to include XvMC support... yes
    checking for /usr/share/sgml/X11/defs.ent... no
    checking for linuxdoc... no
    checking for ps2pdf... /usr/bin/ps2pdf
    checking Whether to build documentation... no
    checking Whether to build pdf documentation... yes
    checking for sed... /bin/sed
    configure: creating ./config.status
    config.status: creating shave
    config.status: creating shave-libtool
    config.status: creating Makefile
    config.status: creating uxa/Makefile
    config.status: creating src/Makefile
    config.status: creating src/xvmc/Makefile
    config.status: creating src/xvmc/shader/Makefile
    config.status: creating src/xvmc/shader/mc/Makefile
    config.status: creating src/xvmc/shader/vld/Makefile
    config.status: creating src/bios_reader/Makefile
    config.status: creating src/ch7017/Makefile
    config.status: creating src/ch7xxx/Makefile
    config.status: creating src/ivch/Makefile
    config.status: creating src/reg_dumper/Makefile
    config.status: creating src/sil164/Makefile
    config.status: creating src/tfp410/Makefile
    config.status: creating man/Makefile
    config.status: creating src/render_program/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands
    Making all in uxa
      CC    uxa.o
      CC    uxa-accel.o
      CC    uxa-glyphs.o
      CC    uxa-render.o
    uxa-render.c: In function 'uxa_picture_from_pixman_image':
    uxa-render.c:392:16: warning: comparison between 'pixman_format_code_t' and 'enum _PictFormatShort'
    uxa-render.c: In function 'uxa_acquire_pattern':
    uxa-render.c:456:5: error: too few arguments to function 'image_from_pict'
    /usr/include/xorg/fb.h:2085:1: note: declared here
    make[2]: *** [uxa-render.lo] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2
        Aborting...
    Any idea what could be causing this problem and how to fix it?

    I installed the x86_64 package from that site, but X still doesn't load the intel module. Here's the relevant part from /var/log/Xorg.0.log:
    [ 124.478] (II) LoadModule: "intel"
    [ 124.478] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
    [ 124.478] (II) Module intel: vendor="X.Org Foundation"
    [ 124.478] compiled for 1.7.1, module version = 2.9.1
    [ 124.478] Module class: X.Org Video Driver
    [ 124.479] ABI class: X.Org Video Driver, version 6.0
    [ 124.479] (EE) module ABI major version (6) doesn't match the server's version ($
    [ 124.479] (II) UnloadModule: "intel"
    [ 124.479] (II) Unloading /usr/lib/xorg/modules/drivers/intel_drv.so
    [ 124.479] (EE) Failed to load module "intel" (module requirement mismatch, 0)
    Last edited by michaelmoufarrij (2010-09-16 07:37:11)

  • Trouble Compiling mysql-query-browser

    After building all of the necesary prerequsites I am trying to compile mysql-query-browser on Solaris 10 (x86). I am getting some errors (shown below) when I run the configure script for the mysql-gui-common components. Can anyone tell me how I might fix these errors?
    ---configure output---
    checking for a BSD-compatible install... /opt/sfw/bin/ginstall -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking build system type... i386-pc-solaris2.10
    checking host system type... i386-pc-solaris2.10
    checking for gcc... gcc
    checking for C compiler default output... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking for ranlib... ranlib
    checking for pkg-config... /usr/bin/pkg-config
    checking for glib-2.0 libxml-2.0 >= 2.6.2... yes
    checking GLIB_CFLAGS... -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/include/libxml2
    checking GLIB_LIBS... -L/usr/local/lib -lglib-2.0 -lxml2 -lpthread -lz -lm -lsocket -lnsl
    checking for gthread-2.0 libxml-2.0 >= 2.6.2... yes
    checking GTHREAD_CFLAGS... -threads -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/include/libxml2
    checking GTHREAD_LIBS... -threads -L/usr/local/lib -lgthread-2.0 -lglib-2.0 -lxml2 -lpthread -lz -lm -lsocket -lnsl
    checking for gtk+-2.0... yes
    checking GTK_CFLAGS... -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
    checking GTK_LIBS... -L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
    checking for libglade-2.0 gtkmm-2.0... yes
    checking GNOME_CFLAGS... -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/gtkmm-2.0 -I/usr/local/lib/gtkmm-2.0/include -I/usr/local/lib/sigc++-1.2/include -I/usr/local/include/sigc++-1.2 -I/usr/include/libglade-2.0 -I/usr/include/libxml2
    checking GNOME_LIBS... -L/usr/local/lib -lglade-2.0 -lxml2 -lpthread -lz -lsocket -lnsl -lgtkmm-2.0 -lgdkmm-2.0 -latkmm-1.0 -lgtk-x11-2.0 -lpangomm-1.0 -lglibmm-2.0 -lsigc-1.2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
    checking for mysql_config... -I'/usr/sfw/include/mysql'
    checking for mysql_config... Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    Options:
    --cflags         [-I'/usr/sfw/include/mysql']
    --libs           [-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L'/usr/sfw/lib/mysql' -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm] --socket         [tmp/mysql.sock]
    --port           [3306]
    --version        [4.0.15]
    --libmysqld-libs [-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L'/usr/sfw/lib/mysql' -lmysqld -lpthread -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm  -lpthread  -lrt]
    checking for pcre-config... yes
    checking for pcre-config... -L/opt/sfw/lib -lpcre
    configure: creating ./config.status
    config.status: creating Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating library/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating library/source/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating library_grt/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating library_grt/source/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating library_grt_modules/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating library_grt_modules/source/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating library_gc/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating library_gc/source/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating source/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating source/grtsh/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating source/linux/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating source/linux/canvas/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating images/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating images/png/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating images/icons/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating images/icons/png/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating res/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating res/linux/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating library/tests/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating library/tests/read_international/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating library/tests/test_detect_charset/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating library/tests/test_mysql_api/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating library/tests/test_parse_sql_statemets/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating library/tests/test_translations/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: creating library/tests/test_xml/Makefile
    sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    config.status: executing depfiles commands

    I agree that it is entirely possible that the problem lies with mySQL and not Sun, however the query I posted on their forums is sitting in deathly silence so I'm now trying elsewhere.
    After making the change you mentioned it configures clean but it doesn't buil properly afterward, I presume this is the same for you.

  • Trouble compiling servlets with J2SE 5

    Hello,
    I've been using Sun 1 Studio CE, and more recently, Netbeans 3.6, with J2SE 1.4.2. I have some basic swing applets and servlets that I wrote for my business' web site.
    I recently downloaded and installed the new software bundle containing Netbeans 4.0 and J2SE 1.5. When I try to compile my servlets, I get a compiler error that packages javax.servlet.* and javax.servlet.http.* do not exist.
    I reinstalled J2SE 1.4.2 and Netbeans 3.6 and the servlets compile fine.
    Why is JDK 5 not able to find these packages? My understanding is that they're part of the Java Servlet API, which I never explicitly downloaded previously. Is that the piece of the puzzle that I'm missing? Please help!
    Thanks

    Thanks for your response...
    What is interesting is that I never explicitly installed the Servlet API. Out of curiosity, I searched my computer for servlet*.jar and came up with 13 files including:
    servlet-2.2.jar
    servlet-2.3.jar
    servlet-api-2.4.jar
    These were located in subdirectories under Netbeans 3.6 and Tomcat 5.0.19. Therefore, I'm assuming that when I downloaded the JDK 1.4.2/Netbeans 3.6 bundle from the Java site, the Servlet API must have been part of the bundle.
    ****Let me check something...***
    I've just done the same search for servlet*.jar on my test PC, which has the Netbeans 4.0/JDK 5 bundle installed. The same files exist, in the same locations(almost the same, anyway; the Tomcat and Netbeans 4 directory structures are a little different).
    Both software bundles contain the same files, yet 1.4.2 compiles without any problems or additional configuration. In other words, I reinstalled the old 1.4.2/ Netbeans 3.6 bundle, took my existing source code, and started compiling.
    Any ideas why the same isn't true for JDK 5/Netbeans 4? I know there are changes to the way Netbeans 4.0 deals with Class Paths, but I thought that was for the classes I've written. Shouldn't the compiler be able to find the servlet API, since it bundled/installed with everything else?
    Thanks

  • Trouble compiling code

    I'm trying to write a rock, paper, scissors program but am having trouble converting an integer to its appropriate string. Here is the code I have:
    // Rock.java
    // Play Rock, Paper, Scissors with the user
    import java.util.Scanner;
    import java.util.Random;
    public class Rock
    public static void main(String[] args)
         String personPlay; //User's play -- "R", "P", or "S"
         String computerPlay; //Computer's play -- "R", "P", or "S"
         int computerInt; //Randomly generated number used to determine
         //computer's play
    Scanner scan = new Scanner(System.in);
         Random generator = new Random();
         computerInt = generator.nextInt(3);//Generate computer's play (0,1,2)
         //Translate computer's randomly generated play to string
         switch (computerInt)
         case 0:
              System.out.println ("R");
              break;
         case 1:
              System.out.println ("P");
              break;
         case 2:
              System.out.println ("S");
              break;
    System.out.println ("Enter your play: R, P, or S");//Get player's play from input-- note that this is stored as a string
    personPlay = scan.nextLine();
    personPlay = personPlay.toUpperCase();     //Make player's play uppercase for ease of comparison
    System.out.println ("Computer play is " + computerPlay);     //Print computer's play
         //See who won. Use nested ifs instead of &&.
         if (personPlay.equals(computerPlay))
         System.out.println("It's a tie!");
         else
              if (personPlay.equals("R"))
                   if (computerPlay.equals("S"))
                   System.out.println("Rock crushes scissors. You win!!");
              if (computerPlay.equals("P"));
                   System.out.println("Paper covers rock. You lose");
                   if (personPlay.equals("P"))
                        if (computerPlay.equals("R"))
                        System.out.println("Paper covers rock. You win!!");
                        if (computerPlay.equals("S"))
                                  System.out.println("Scissors cuts paper. You lose");
                   if (personPlay.equals("S"))
                             if (computerPlay.equals("R"));
                                       System.out.println("Rock crushes scissors. You lose");
                             if (computerPlay.equals("P"))
                             System.out.println("Scissors cuts paper. You win!!");
              //... Fill in rest of code
    My compiling error is that the string computerPlay was not initialized.. I think I need to do something more in the switch section of the code but can't figure out what. Thanks ahead of time for any advice!

    soccer89 wrote:
    My compiling error is that the string computerPlay was not initialized.. I think I need to do something more in the switch section of the code but can't figure out what. Thanks ahead of time for any advice!Instead of running System.out.println() set the value in your switch statementl then run
    System.out.println(computerPlay);after it's properly set.
    BTW, rather than a switch statement, you could use
    computerPlay = "RPS".substring(computerInt, computerInt + 1);I'll leave you to work out why.
    Winston

Maybe you are looking for

  • GetSelectedMember does not work on BEx Query Structure

    Hi Has anyone seen the following behaviour: I have a BEx query I created a design studio application that accesses the BEx query The application displays a column chart. When you select a column, it 'jumps' to another tab that displays the detail in

  • Non-cumulative value Parameters EFFECT

    Hi, I am customizing the 0IC_C03 inventory cube to get to the reports we need. But the query performance is extremly slow. We do not have BI Acceleratior, but aggregates are build for my query. So I duplicated the cube and removed 0MATERIAL from the

  • Help with oracle 10g install on solaris x86

    hi, i downloaded solaris 10 from oracle site (sol-10-u8-ga-x86-dvd.iso) and i have installed it on vmware. i was going through the installation guide for oracle 10 for solaris x86 and while on the pre-installation steps, i issued this command # /bin/

  • How to set Links to Folders and Users in Web Page Composer???

    Hello, With the Link List editor in the WPC you can create Links to documents. This is great because the link lists work with GUI-IDs. This means if the object moves within the KM to another location the link still points to the correct object. Howev

  • Media Encoder Question-With Explainable Images

    OS: Vista 32bit Producet:Adobe Premiere Pro Cs3 Issue: concerning export settings For: Facebook videos. req. H.264 video with AAC audio in MOV or MP4 format, 30fps, 44,100hz I've have been exporting stuff for a while by File>Export Adobe Media Encode