Help: Using Code App on iOS for cross-file C++ programming (I'm a beginner in C++ and not doing particularly complex development)

Offen
#1,305 4 Kommentare 7 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
18/100
Issue-Typ
Dokumentation
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
cpp, ios

Rechercherichtung

The issue is a support question, not a defined change: it asks whether Code App on iOS can build a multi-file C++ project (myhead.h, myfunction.cpp, main.cpp) and reports that the clang++ main.cpp my.cpp -o myPro terminal command fails. Start by reproducing the build in the in-app terminal and capturing the exact error text. Done means a documented, working way to compile and run the example, or a clear answer that the app cannot do it.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Help: Using Code App on iOS for cross-file C++ programming (I'm a beginner in C++ and not doing particularly complex development)
Does the Code App on the iOS App Store support cross-file programming? For example, a folder containing myhead.h (function declarations), myfunction.cpp (function definitions), and main.cpp (a main function that calls the functions declared in myhead.h and defined in myfunction.cpp). If there is a way to achieve cross-file programming, please help me out. I don’t know how to properly compile and run files across multiple sources.
I tried entering commands in the terminal (the command was clang++ main.cpp my.cpp -o myPro), but the terminal kept reporting errors.!

Vorherrschende Sprache
Swift
Sterne
4k
Forks
376
Ø Merge
1 Min.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus thebaselab/codeapp

Alle Issues in thebaselab/codeapp

Ähnliche Issues

Weitere Issues zu Swift

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.