So, I’m relatively new to C++ and I’ve been trying to run Lua files in my C++ project. To start off things, I ran this simple code: And the terminal command looks like this: Edit: Corrected to this Lua libraries are installed on my system (Linux), but the linker can’t find the definition for luaL_newstate(), despite the fact that I
Tag: linker-errors
DMD2 fails to compile shared library on Linux, amd64
I’ve been programming on a 32 bit machine, until recently, I upgraded to a 64 bit one. I’m using the latest version of DMD (amd64), on xubuntu 16.04 (amd64). Before the upgrade, I could easily compile shared libs using dmd -shared ‘FILES’, but now, it gives an error. I have a file named q.d: And now when I do dmd
‘undefined reference to’ Linker errors with latest LLVM from git (3.9.0svn) on Arch Linux
Prior to my Macbook Pro motherboard failure I was working on a programming language of mine with Flex, Bison, and LLVM. I honestly don’t recall the version of LLVM I was linking against at the time (I will try to find this out after I salvage the data from the drive), but I do know that the latest version I’m
OpenCV 3.1 Upgrade Leads to Linker Errors on Linux
I’ve recently upgraded from OpenCV 2.4.11 to OpenCV 3.1 by following this guide. This sudo make install seems to have worked successfully and when I run pkg-config –modversion opencv, I get the appropriate version (3.1.0). But for some reason, I am now running into linker errors, and even simple programs are unable to compile, for example: returns the errors: main.cpp:-1:
Calling assembly routines from C source code
I have this simple C source code : and i have this s.asm which defines the function _Sum : now , i compiled the .asm using : and compiled and linked the .c file using : this is the outcome : So what is the problem ? I’m using Ubuntu-Linux Any help would be greatly appreciated , Thanks [SOLVED] :