Wxicon_warning zeigt ein falsches Symbol auf macOS? [geschlossen]C++

Programme in C++. Entwicklerforum
Anonymous
 Wxicon_warning zeigt ein falsches Symbol auf macOS? [geschlossen]

Post by Anonymous »

Wenn ich versuche, Symbole zu laden, einschließlich der Standards: < /p>

Code: Select all

#include 
class currentApp : public wxApp {
public:
virtual bool OnInit() {
wxMessageBox("text here", "Testing Warning Icon", wxOK | wxICON_WARNING);
// its icon doesn't load and gets replaced by the default macos blue folder icon
return false;
}
};
wxIMPLEMENT_APP(currentApp);
< /code>
... Sie laden nicht und werden stattdessen durch das Standardsymbol für Mac Blue -Ordner ersetzt. < /p>
Ich habe es versucht: < /p>
[list]
[*] Starten Sie wxWidgets < /li>
 Neustart neu Gerät
[*] Initialisierung aller Bildhandler im Voraus (wxinitallimageHandlers ();)
[/list]
Hier ist mein Makefile:
CXX = clang++

CXXFLAGS = -std=c++17 $(shell wx-config --cxxflags) \
-I/opt/homebrew/include/wx-3.2

LDFLAGS = $(shell wx-config --libs) \

LIBS =  -lpng -ltiff -ljpeg
TARGET = iconTest
SRC = iconTest.cpp

all: $(TARGET)

$(TARGET): $(SRC)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(SRC) -o $(TARGET) $(LIBS)

clean:
rm -f $(TARGET)

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post