Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to solve undefined reference to _imp__** while building a console application in DEV-CPP linked to a static library?
    primarykey
    data
    text
    <p><strong>Background Information</strong><br> I'm trying to build the GAUL library according to this <a href="http://gaul.sourceforge.net/windows-DevCPP.html" rel="nofollow">Instructions</a> .</p> <p><strong>The Problem</strong><br> Well I have two static libraries in C, build by me in Dev-CPP Windows 7 64 bit, one referencing the other.</p> <p>And to test those I created a Console Application which referenced them.</p> <p>Well when I tried to compile this is the log I getting:</p> <pre> > Compiler: Default compiler > Building Makefile: "C:\Soft\GAUL\Makefile.win" > Executing make... > make.exe -f > "C:\Soft\GAUL\Makefile.win" all > **gcc.exe ../gaul-devel-windows/examples/struggle.o -o "struggle.exe" -L"C:/Dev-Cpp/lib" gaul-util.a gaul-devel.a** > > gaul-util.a(memory_util.o)(.text+0x2e):memory_util.c: undefined reference to '_imp__mem_chunk_new_real' > gaul-util.a(memory_util.o)(.text+0x6c):memory_util.c: undefined reference to '_imp__mem_chunk_free_real' > ... > gaul-devel.a(ga_core.o)(.text+0x101):ga_core.c: undefined reference to 'slink_free_all' > gaul-devel.a(ga_core.o)(.text+0x360):ga_core.c: undefined reference to 'mem_chunk_new_real' > ... > collect2: ld returned 1 > exit status > > make.exe: *** [struggle.exe] Error 1 > > Execution terminated </pre> <p>I <strong>think</strong> that it has something to do with the parameters being used in the <code>gcc</code> command.</p> <p><strong>Actual Status</strong><br> I've tried:<br> - Copying the libraries to C:\Dev-Cpp\lib<br> - Using the whole address before the libraries names<br> - Using -l before the libaries names<br> - Not using <code>.a</code> after the names </p> <p>Not successful results with any of those.</p> <p>Could anyone point me in the right direction? </p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload