Problem beim Compilieren auf 64Bit



  • Hallo ich muss ein Programm auf 64Bit Compilieren und bekomme folgende fehler meldung. Ich muss dazu sagen das mein Wissen um C++ sehr begrenzt sind und ich eine schnelle Lösung brauche!

    Vielen Dank!

    //
    //    WHFC A Fax Client for HylaFAX
    //
    //    Copyright (C) 2003 Ulrich Eckhardt 
    //    written by Ulrich Eckhardt uli@uli-eckhardt.de
    //
    //    This program is free software; you can redistribute it and/or
    //    modify it under the terms of the GNU General Public License as
    //    published by the Free Software Foundation; either version 2 of
    //    the License, or (at your option) any later version.
    //
    //    This program is distributed in the hope that it will be useful,
    //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    //    General Public License for more details.
    //
    //    You should have received a copy of the GNU General Public License
    //    along with this program; if not, write to the Free Software
    //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    //
    //
    // JobTagList.h:
    //
    // A ListClass for storing assignments between the job-tag identifier
    // character and a name for displaying in the Queue List.
    
    #ifndef _JOB_TAG_LIST_H
    #define _JOB_TAG_LIST_H
    
    class JobTag
    {
    public:
    	JobTag();
    	JobTag& operator=(JobTag &l);
    	operator CString() {return Text;};
    	operator CString&() {return Text;};
    	operator LPCSTR() {return (LPCSTR)Text;};
    	operator == (JobTag f) const 
    	{
    		return (identifier == f.identifier);
    	};
    	CString Text;
    	char identifier;
    	BYTE sort_type;
    };
    
    class JobTagList : public
    	CList < class JobTag, class JobTag > 
    {
    	public:
    		static void ParseJobFmtRessource(UINT queue,JobTagList *list);
    };
    
    #endif
    
    FEHLER:
    ------ Build started: Project: Winhyla, Configuration: Debug x64 ------
    Compiling...
    StdAfx.cpp
     WINVER not defined. Defaulting to 0x0600 (Windows Vista)
    c:\users\administrator\desktop\whfc-1.2.4_src\whfc_1.2\JobTagList.h(39) : error C2144: syntax error : 'const void' should be preceded by ';'
    c:\users\administrator\desktop\whfc-1.2.4_src\whfc_1.2\JobTagList.h(39) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\users\administrator\desktop\whfc-1.2.4_src\whfc_1.2\JobTagList.h(39) : error C2059: syntax error : '{'
    c:\users\administrator\desktop\whfc-1.2.4_src\whfc_1.2\JobTagList.h(39) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    c:\users\administrator\desktop\whfc-1.2.4_src\whfc_1.2\WinhylaView.h(115) : warning C4244: '=' : conversion from 'UINT_PTR' to 'UINT', possible loss of data
    Creating browse information file...
    Microsoft Browse Information Maintenance Utility Version 9.00.21022
    Copyright (C) Microsoft Corporation. All rights reserved.
    BSCMAKE: error BK1506 : cannot open file '.\x64\Debug\DefaultModem.sbr': No such file or directory
    Build log was saved at "file://C:\Users\Administrator\Desktop\whfc-1.2.4_src\whfc_1.2\x64\Debug\BuildLog.htm"
    Winhyla - 5 error(s), 1 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    


  • Sieht nicht nach einem 64 bit Problem aus.

    Gib dem hier nen Rueckgabewert:

    operator == (JobTag f) const 
    { 
        return (identifier == f.identifier); 
    };
    

    Edit: Schon ewig kein C++ mehr gemacht.
    Edit #4: 😞

    So: bool operator == (JobTag f) const



  • endline schrieb:

    Sieht nicht nach einem 64 bit Problem aus.

    Gib dem hier nen Rueckgabewert:

    So: bool operator == (JobTag f) const

    Kein Leerzeichen zwischen dem operator und dem ==:

    bool operator== (JobTag f) const
    


  • Dieser Thread wurde von Moderator/in rüdiger aus dem Forum Rund um die Programmierung in das Forum C++ verschoben.

    Im Zweifelsfall bitte auch folgende Hinweise beachten:
    C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?

    Dieses Posting wurde automatisch erzeugt.


Anmelden zum Antworten