www.main.lv
Don't think just code it

2010-01-21 Linux assembler and g++

format ELF

section '.text' executable

public eexit
eexit:
	mov	eax,1
	xor	ebx,ebx
	int	0x80
	ret


#include <cstdlib>
#include <cstdio>
#include <iostream>

extern "C" void eexit();

int main()
{
	eexit();
	std::cout << "Problem?\n";
	return 0;
}

Compile:
fasm hello.asm hello.o
g++ -c cmain.cpp -o cmain.o
g++ cmain.o hello.o -o cmain