felixhao28 / JSCPP

A simple C++ interpreter written in JavaScript

Home Page:https://felixhao28.github.io/JSCPP/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG: cstdio and cstring are conflicting.

victorrseloy opened this issue · comments

if you include cstdio and cstring on same cpp file you get an exception saying that some methods are already defined, this is happening because during the load of cstdio cstring is being implicit loaded by this line

rt.include "cstring"

I've already started working on a fix to this, bellow follows a test case to see the problem happening:

#include <stdio.h>
#include <string.h>

int main()
{
    printf("test - ok");
    return 0;
}

PR: #25 will fix this

Thanks! I will review your PR soon.