AspectC++(1)
β¨ NAME β¨
Okay bestie, this page is all about ag++ π, which is a frontend to ac++ and g++. It's basically g++ with aspect superpowers π₯.
π SYNOPSIS π
ag++ -o output input.cpp
ag++ -c -o output.o -o input.cpp
π DESCRIPTION π
Okay so this manual page only gives you a quick overview of the ag++ command πΈ. It's the bare-bones version, so don't panic if you want more detail.
ag++ is a frontend to ac++ and g++, and it comes from AspectC++ π¦. For a better and more complete reference, go read the AspectC++ documentation. Trust me, it's giving full lore π.
ag++ is called pretty much like g++ itself π
. Peep the two syntax forms up in SYNOPSIS, then follow these explanations:
The first syntax form takes input.cpp and makes an executable named output. Along the way it weaves into input.cpp every aspect that crosscuts it β¨. Honestly this is the main character move. Your input.cpp still has the same restrictions it would have if you were compiling a regular C++ program, so it needs a main() function, plus everything you already know π.
The second syntax form takes input.cpp and makes an object file named output.o, and again it weaves in all the aspects that crosscut it π§.
Note: in both cases,input.cppisn't actually changed π«Ά.g++weaves into temporary files instead, so your original file stays exactly as it is.
Common g++ arguments, like -I INDCIR, -L LIBCIR, -l libfoo, and so on, get recognized by ag++ and passed along to g++ π. It's giving seamless.
π OPTIONS π
Further options can be seen in the AspectC++ documentation π. Go check it out, there's so much more.
π¦ SEE ALSO π¦
ag++ (1), g++ (1).
Again, for the full reference on AspectC++ usage, see the AspectC++ documentation. You can grab it from http://www.aspectc.org π.
π AUTHOR π
This manual page was written by Antonio S. de A. Terceiro <asaterceiro@inf.ufrgs.br> for the Debian system, but others are totally allowed to use it π«Ά. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2, and any later version published by the Free Software Foundation π
.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL π.
Ttyl, that's the whole AspectC++(1) page πβ¨π¦
π¦ where this page comes from
- debian bookworm: aspectc++ 1:2.3+git20221129-2
- debian trixie: aspectc++ 1:2.3+git20241211-1
- ubuntu noble: aspectc++ 1:2.3+git20230726-1build1
- ubuntu questing: aspectc++ 1:2.3+git20241211-1build1
- ubuntu resolute: aspectc++ 1:2.5-1
- ubuntu stonking: aspectc++ 1:2.5-1
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms