Thanks for the help! Adding extern "C" and changing the char* to a char** worked.

#ifndef MY_H_
#define MY_H_

extern "C" {
#include <stdio.h>

int my_main (int, char**);
}
#endif