Download presentation
Presentation is loading. Please wait.
Published byJanel Grace Freeman Modified over 6 years ago
1
Lab 10 Instructions You can use g++ on build server, visual studio on local machine or your preferred C++ IDE. Important Note: For your grade, please show me the result after you finish all the tasks. Make-Up Policies: If you cannot finish the drill in the lab, you can go back to work on it. You can send me (including result screenshot and source code) or show me in next lab.
2
ssh -Y accountname@build.tamu.edu
Drill Introduction to C++ Graphics programming 1. If necessary, first start your X Window Server (e.g., Xming). 2. Under Putty>Connection>SSH>X11, be sure "Enable X11 forwarding" is checked for your saved sessions for build.tamu.edu; then log in to build. From a Mac or Linux terminal window , just type (The -Y enables X11 forwarding.) 3. Download all the files in to a new directory as text files. If you are off campus you must use VPN. ssh
3
g++ -std=c++14 *cpp -lfltk -lfltk_images
Drill 4. Compile with the command 5. Run with ./a.out You should get a window with two different-colored lines in it like a big plus sign. Clicking the "Next" button in the upper right-hand corner of the window should close it and exit the program. To write a different graphics program, edit sample_main4.cpp, or else delete sample_main4.cpp and write another cpp instead. g++ -std=c++14 *cpp -lfltk -lfltk_images
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.