Hi everyone!

Could please anyone help me with the problem below? 

To reproduce bug you need to create 3 files:

1) Main.cpp

extern void Func1();

extern void Func2();

int main()
{
    Func1();

    Func2();

    return 0;
}

2) File.cpp

#include <stdio.h>

void Func2()
{
    printf("Func2\n");
}

3) Dir/File.cpp


#include <stdio.h>

void Func1()
{
    printf("Func1\n");
}

And then compile & link them:

em++ -c File.cpp -o File.o
em++ -c Dir/File.cpp -o Dir/File.o
em++ rc libLib.a File.o Dir/File.o
em++ Main.cpp libLib.a -o application.html

You will get the following error:

warning: unresolved symbol: _Z5Func2v


Thanks,
Andrew.


Hi!
>
> Could anyone look into this issue 
> https://github.com/kripken/emscripten/issues/3168?
>
> Thanks.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to