Tech Support Guy banner
  • Please post in our Community Feedback thread for help with the new forum software! If you are having trouble logging in, please Contact Us for assistance.
Status
Not open for further replies.
1 - 1 of 1 Posts

·
Registered
Joined
·
1 Posts
Discussion Starter · #1 ·
as you can tell from my username xp is my superman. so i try to compile it with following code

[code[/* Source Code - Windows XP
*/

#include "win31.h"
#include "win95.h"
#include "win98.h"
#include "workst~1.h"
#include "evenmore.h"
#include "oldstuff.h"
#include "billrulz.h"
#include "monopoly.h"
#include "backdoor.h"
#define INSTALL = HARD

char make_prog_look_big(16000000);
void main()
{
while(!CRASHED)
{
display_copyright_message();
display_bill_rules_message();
do_nothing_loop();

if (first_time_installation)
{
make_100_megabyte_swapfile();
do_nothing_loop();
totally_screw_up_HPFS_file_system();
search_and_destroy_the_rest_of-OS2();
make_futile_attempt_to_damage_Linux();
disable_Netscape();
disable_RealPlayer();
disable_Lotus_Products();
hang_system();
} //if
write_something(anything);
display_copyright_message();
do_nothing_loop();
do_some_stuff();

if (still_not_crashed)
{
display_copyright_message();
do_nothing_loop();
basically_run_windows_31();
do_nothing_loop();
} // if
} //while

if (detect_cache())
disable_cache();

if (fast_cpu())
{
set_wait_states(lots);
set_mouse(speed,very_slow);
set_mouse(action,jumpy);
set_mouse(reaction,sometimes);
} //if

/* printf("Welcome to Windows 3.1"); */
/* printf("Welcome to Windows 3.11"); */
/* printf("Welcome to Windows 95"); */
/* printf("Welcome to Windows NT 3.0"); */
/* printf("Welcome to Windows 98"); */
/* printf("Welcome to Windows NT 4.0"); */
printf("Welcome to Windows XP");

if (system_ok())
crash(to_dos_prompt)
else
system_memory = open("a:\swp0001.swp",O_CREATE);

while(something)
{
sleep(5);
get_user_input();
sleep(5);
act_on_user_input();
sleep(5);
} // while
create_general_protection_fault();

} // main [/code]

but it fail

Code:
g++ -Wall untitled.cc -o untitled
untitled.cc:1: error: stray ‘\’ in program
untitled.cc:1: error: stray ‘\’ in program
untitled.cc:1: error: stray ‘\’ in program
untitled.cc:1: error: stray ‘\’ in program
untitled.cc:1: error: stray ‘\’ in program
untitled.cc:2: error: stray ‘\’ in program
untitled.cc:2: error: stray ‘\’ in program
untitled.cc:2: error: stray ‘\’ in program
untitled.cc:2: error: stray ‘\’ in program
untitled.cc:3: error: stray ‘\’ in program
untitled.cc:3: error: stray ‘\’ in program
untitled.cc:3: error: stray ‘\’ in program
untitled.cc:3: error: stray ‘\’ in program
untitled.cc:4: error: stray ‘\’ in program
untitled.cc:4: error: stray ‘\’ in program
untitled.cc:4: error: stray ‘\’ in program
untitled.cc:4: error: stray ‘\’ in program
untitled.cc:4: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:5: error: stray ‘\’ in program
untitled.cc:7: error: stray ‘\’ in program
untitled.cc:7: error: stray ‘\’ in program
untitled.cc:7: error: stray ‘\’ in program
untitled.cc:7:42: warning: backslash-newline at end of file
untitled.cc:7: error: stray ‘#’ in program
untitled.cc:7: error: stray ‘#’ in program
untitled.cc:7: error: stray ‘#’ in program
untitled.cc:7: error: stray ‘#’ in program
untitled.cc:7: error: stray ‘#’ in program
untitled.cc:7: error: stray ‘#’ in program
untitled.cc:7: error: stray ‘#’ in program
untitled.cc:7: error: stray ‘#’ in program
untitled.cc:7: error: stray ‘#’ in program
untitled.cc:7: error: stray ‘#’ in program
untitled.cc:7: error: stray ‘\’ in program
untitled.cc:7: error: stray ‘\’ in program
untitled.cc:7: error: stray ‘\’ in program
untitled.cc:7: error: stray ‘\’ in program
untitled.cc:41:10: warning: multi-line comment
untitled.cc:1: error: expected unqualified-id before ‘{’ token
so maybe it because file is rtf so i save text only but still error

Code:
g++ -Wall untitled.cc -o untitled
untitled.cc:4:19: error: win31.h: No such file or directory
untitled.cc:5:19: error: win95.h: No such file or directory
untitled.cc:6:19: error: win98.h: No such file or directory
untitled.cc:7:22: error: workst~1.h: No such file or directory
untitled.cc:8:22: error: evenmore.h: No such file or directory
untitled.cc:9:22: error: oldstuff.h: No such file or directory
untitled.cc:10:22: error: billrulz.h: No such file or directory
untitled.cc:11:22: error: monopoly.h: No such file or directory
untitled.cc:12:22: error: backdoor.h: No such file or directory
untitled.cc:16: error: ‘::main’ must return ‘int’
untitled.cc: In function ‘int main()’:
untitled.cc:18: error: ‘CRASHED’ was not declared in this scope
untitled.cc:20: error: ‘display_copyright_message’ was not declared in this scope
untitled.cc:21: error: ‘display_bill_rules_message’ was not declared in this scope
untitled.cc:22: error: ‘do_nothing_loop’ was not declared in this scope
untitled.cc:24: error: ‘first_time_installation’ was not declared in this scope
untitled.cc:26: error: ‘make_100_megabyte_swapfile’ was not declared in this scope
untitled.cc:28: error: ‘totally_screw_up_HPFS_file_system’ was not declared in this scope
untitled.cc:29: error: ‘search_and_destroy_the_rest_of’ was not declared in this scope
untitled.cc:29: error: ‘OS2’ was not declared in this scope
untitled.cc:30: error: ‘make_futile_attempt_to_damage_Linux’ was not declared in this scope
untitled.cc:31: error: ‘disable_Netscape’ was not declared in this scope
untitled.cc:32: error: ‘disable_RealPlayer’ was not declared in this scope
untitled.cc:33: error: ‘disable_Lotus_Products’ was not declared in this scope
untitled.cc:34: error: ‘hang_system’ was not declared in this scope
untitled.cc:36: error: ‘anything’ was not declared in this scope
untitled.cc:36: error: ‘write_something’ was not declared in this scope
untitled.cc:39: error: ‘do_some_stuff’ was not declared in this scope
untitled.cc:41: error: ‘still_not_crashed’ was not declared in this scope
untitled.cc:45: error: ‘basically_run_windows_31’ was not declared in this scope
untitled.cc:50: error: ‘detect_cache’ was not declared in this scope
untitled.cc:51: error: ‘disable_cache’ was not declared in this scope
untitled.cc:53: error: ‘fast_cpu’ was not declared in this scope
untitled.cc:55: error: ‘lots’ was not declared in this scope
untitled.cc:55: error: ‘set_wait_states’ was not declared in this scope
untitled.cc:56: error: ‘speed’ was not declared in this scope
untitled.cc:56: error: ‘very_slow’ was not declared in this scope
untitled.cc:56: error: ‘set_mouse’ was not declared in this scope
untitled.cc:57: error: ‘action’ was not declared in this scope
untitled.cc:57: error: ‘jumpy’ was not declared in this scope
untitled.cc:58: error: ‘reaction’ was not declared in this scope
untitled.cc:58: error: ‘sometimes’ was not declared in this scope
untitled.cc:67: error: ‘printf’ was not declared in this scope
untitled.cc:69: error: ‘system_ok’ was not declared in this scope
untitled.cc:70: error: ‘to_dos_prompt’ was not declared in this scope
untitled.cc:70: error: ‘crash’ was not declared in this scope
untitled.cc:71: error: expected `;' before ‘else’
untitled.cc:74: error: ‘something’ was not declared in this scope
untitled.cc:76: error: ‘sleep’ was not declared in this scope
untitled.cc:77: error: ‘get_user_input’ was not declared in this scope
untitled.cc:79: error: ‘act_on_user_input’ was not declared in this scope
untitled.cc:82: error: ‘create_general_protection_fault’ was not declared in this scope
how to fix?
 
1 - 1 of 1 Posts
Status
Not open for further replies.
Top