How to link DLL #1810
How to link DLL
#1810
Replies: 1 comment
-
I figured it out. I replaced
with
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hiya,
Please can someone have a look at this
with "config/xframes_config.gpr";
project xframes is
for Source_Dirs use ("src/", "config/");
for Object_Dir use "obj/" & Xframes_Config.Build_Profile;
for Create_Missing_Dirs use "True";
for Exec_Dir use "bin";
for Main use ("xframes.adb");
package Compiler is
for Default_Switches ("Ada") use Xframes_Config.Ada_Compiler_Switches;
end Compiler;
package Binder is
for Switches ("Ada") use ("-Es"); -- Symbolic traceback
end Binder;
package Linker is
for Linker_Options use ("-L./", "-lxframesshared");
end Linker;
package Install is
for Artifacts (".") use ("share");
end Install;
end xframes;
I am completely new to Alire, apologies if this is a dumb question, but I am getting
C:/dev/xframes-ada/src/xframes.adb:141:(.text$_ada_show_c_func+0x211): undefined reference to `init'
collect2.exe: error: ld returned 1 exit status
gprbuild: link of xframes.adb failed
gprbuild: failed command was: c:\users\manes\appdata\local\alire\cache\toolchains\gnat_native_14.2.1_2540cccb\bin\gcc.exe xframes.o b__xframes.o C:\Users\manes\AppData\Local\alire\cache\builds\gnatcoll_25.0.0_d7d84483\1c5a11dfd3e583ee9d78b341fe34fdeef4a5c8c7340afba2226808d8ed664163\projects\lib\gnatcoll_projects\static\libgnatcoll_projects.a C:\Users\manes\AppData\Local\alire\cache\builds\libgpr_25.0.0_17669998\122833a0092e86037b2a3f2e6a36047ffe12c7002f796bb126a525ec15fdea94\gpr\lib\production\static\libgpr.a C:\Users\manes\AppData\Local\alire\cache\builds\xmlada_25.0.0_7f12fe3a\c33f08a07ed1c73a52c7ed730533458892c080532e5997243afaaedc0bbf845e\schema\lib\static\libxmlada_schema.a C:\Users\manes\AppData\Local\alire\cache\builds\xmlada_25.0.0_7f12fe3a\c33f08a07ed1c73a52c7ed730533458892c080532e5997243afaaedc0bbf845e\dom\lib\static\libxmlada_dom.a C:\Users\manes\AppData\Local\alire\cache\builds\xmlada_25.0.0_7f12fe3a\c33f08a07ed1c73a52c7ed730533458892c080532e5997243afaaedc0bbf845e\sax\lib\static\libxmlada_sax.a C:\Users\manes\AppData\Local\alire\cache\builds\xmlada_25.0.0_7f12fe3a\c33f08a07ed1c73a52c7ed730533458892c080532e5997243afaaedc0bbf845e\input_sources\lib\static\libxmlada_input_sources.a C:\Users\manes\AppData\Local\alire\cache\builds\xmlada_25.0.0_7f12fe3a\c33f08a07ed1c73a52c7ed730533458892c080532e5997243afaaedc0bbf845e\unicode\lib\static\libxmlada_unicode.a C:\Users\manes\AppData\Local\alire\cache\builds\gnatcoll_25.0.0_d7d84483\1c5a11dfd3e583ee9d78b341fe34fdeef4a5c8c7340afba2226808d8ed664163\core\lib\gnatcoll_core\static\libgnatcoll_core.a C:\Users\manes\AppData\Local\alire\cache\builds\gnatcoll_25.0.0_d7d84483\1c5a11dfd3e583ee9d78b341fe34fdeef4a5c8c7340afba2226808d8ed664163\minimal\lib\gnatcoll_core\static\libgnatcoll_minimal.a -lpsapi -lntdll -lpsapi -lntdll -LC:\dev\xframes-ada\obj\development\ -LC:\dev\xframes-ada\obj\development\ -LC:\Users\manes\AppData\Local\alire\cache\builds\gnatcoll_25.0.0_d7d84483\1c5a11dfd3e583ee9d78b341fe34fdeef4a5c8c7340afba2226808d8ed664163\core\lib\gnatcoll_core\static\ -LC:\Users\manes\AppData\Local\alire\cache\builds\gnatcoll_25.0.0_d7d84483\1c5a11dfd3e583ee9d78b341fe34fdeef4a5c8c7340afba2226808d8ed664163\minimal\lib\gnatcoll_core\static\ -LC:\Users\manes\AppData\Local\alire\cache\builds\gnatcoll_25.0.0_d7d84483\1c5a11dfd3e583ee9d78b341fe34fdeef4a5c8c7340afba2226808d8ed664163\projects\lib\gnatcoll_projects\static\ -LC:\Users\manes\AppData\Local\alire\cache\builds\libgpr_25.0.0_17669998\122833a0092e86037b2a3f2e6a36047ffe12c7002f796bb126a525ec15fdea94\gpr\lib\production\static\ -LC:\Users\manes\AppData\Local\alire\cache\builds\xmlada_25.0.0_7f12fe3a\c33f08a07ed1c73a52c7ed730533458892c080532e5997243afaaedc0bbf845e\unicode\lib\static\ -LC:\Users\manes\AppData\Local\alire\cache\builds\xmlada_25.0.0_7f12fe3a\c33f08a07ed1c73a52c7ed730533458892c080532e5997243afaaedc0bbf845e\sax\lib\static\ -LC:\Users\manes\AppData\Local\alire\cache\builds\xmlada_25.0.0_7f12fe3a\c33f08a07ed1c73a52c7ed730533458892c080532e5997243afaaedc0bbf845e\input_sources\lib\static\ -LC:\Users\manes\AppData\Local\alire\cache\builds\xmlada_25.0.0_7f12fe3a\c33f08a07ed1c73a52c7ed730533458892c080532e5997243afaaedc0bbf845e\dom\lib\static\ -LC:\Users\manes\AppData\Local\alire\cache\builds\xmlada_25.0.0_7f12fe3a\c33f08a07ed1c73a52c7ed730533458892c080532e5997243afaaedc0bbf845e\schema\lib\static\ -LC:/users/manes/appdata/local/alire/cache/toolchains/gnat_native_14.2.1_2540cccb/lib/gcc/x86_64-w64-mingw32/14.2.0/adalib/ -static-libgcc C:/users/manes/appdata/local/alire/cache/toolchains/gnat_native_14.2.1_2540cccb/lib/gcc/x86_64-w64-mingw32/14.2.0/adalib/libgnat.a -Wl,--stack=0x2000000 -o C:\dev\xframes-ada\bin\xframes.exe
ERROR: Command ["gprbuild", "-s", "-j0", "-p", "-P", "C:\dev\xframes-ada\xframes.gpr"] exited with code 4
ERROR: Build failed, cannot perform installation
I see no trace of xframesshared
What am I missing?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions