Hi Arvind! I see your replies here: https://groups.google.com/g/emscripten-discuss/c/rgIlaL5prEE
Otherwise: 1. using claws-mail, your email formatting is bad. Perhaps use an .asciidoc or .md file on github/etc. 2. i don't know how the lib*.a files were generated. 3. Please give an SSCCE - read the whole of https://github.com/shlomif/how-to-share-code-online and https://github.com/shlomif/writing-the-perfect-question (no excuses!). Perhaps use github actions. On Sun, 21 Nov 2021 23:54:35 +0530 Arvind Arya <[email protected]> wrote: > First I remember an Ad when Expedia try to make in India > https://www.youtube.com/watch?v=Rmadver1Xdk. > Rajnikant once won the world series of poker using UNO cards. > > Sorry I had to leave town due to some unforeseen circumstances. Thank you > for asking I am still stuck. I was able to link the header files I made the > object file main.o and the I am having trouble linking the library archives > I tried everything > > > *ld main.o libopencv_core.a libopencv_imgcodecs.a* > > *ld: symbol(s) not found for architecture x86_64* > *clang: error: linker command failed with exit code 1 (use -v to see > invocation)* > > > tried the same command with* gcc and g++ The same error/* > I combined the archives with command: *ar rcs all_the_object_files.o to > newib.a* > *tried with * > > *emcc main.cpp newlib.a -o hello.html --emrun* > > emcc: warning: newlib.a: archive is missing an index; Use emar when > creating libraries to ensure an index is created [-Wemcc] > emcc: warning: newlib.a: adding index [-Wemcc] > error: undefined symbol: _ZN2cv3MatD1Ev (referenced by top-level compiled > C/C++ code) > warning: Link with `-s LLD_REPORT_UNDEFINED` to get more information on > undefined symbols > warning: To disable errors for undefined symbols use `-s > ERROR_ON_UNDEFINED_SYMBOLS=0` > > > A lot of Errors. How do I link these libraries with the object file. > Thank You So much. I was wondering would it be so rude to ask you now. *Thank > you very much.* > *Arvind from Emscripten Group(My replies keep getting deleted there)* -- Shlomi Fish https://www.shlomifish.org/ https://www.shlomifish.org/humour/bits/facts/Emma-Watson/ Fortran - there isn’t a way to do it... oh wait! Now there is. — https://www.shlomifish.org/humour/ways_to_do_it.html Please reply to list if it's a mailing list post - https://shlom.in/reply . -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/20211122084813.7219ea2d%40shlomifish.org.
