From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Rod Kay Newsgroups: comp.lang.ada Subject: Re: Artificial Intelligence libraries in ADA Date: Thu, 12 Jan 2023 23:18:54 +1100 Organization: A noiseless patient Spider Message-ID: References: <53481976-aebc-4d6d-bb8f-aa4f63f0b01b@googlegroups.com> <9becf5e6-1e77-4711-a4bb-1c7a5465e804n@googlegroups.com> <8f87c00c-1043-4452-8cee-ce437c0fafcfn@googlegroups.com> <29948ab4-9b39-4996-bcb8-3a2f7f509225n@googlegroups.com> <624d767b-ce04-46b0-8a5c-1999a86d3a1an@googlegroups.com> <77030e13-e4fc-4675-ac54-9d3047cf992cn@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 12 Jan 2023 12:18:39 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="1d3df95a2be197b83fa17e6989f75c3b"; logging-data="1344293"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RzYD/xg97GPoizdfjwiT5PcpMnIJWezc=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Cancel-Lock: sha1:M2DpwrKVdAltSa8/HX4TjkEjIl0= Content-Language: en-US In-Reply-To: <77030e13-e4fc-4675-ac54-9d3047cf992cn@googlegroups.com> Xref: reader01.eternal-september.org comp.lang.ada:64813 List-Id: On 12/1/23 22:28, Roger Mc wrote: > My hello_tf link is failing with: > > gprbuild -d -eL -P/Ada_Source/cBound/tier-1/tensorflow/applet/demo/hello_tf/hello_tf.gpr --config=/Ada_Source/default.cgpr -s > Link > [link] hello_tf.adb > Undefined symbols for architecture x86_64: > "_TF_AbortWhile", referenced from: > _Ada_TF_AbortWhile in libTensorFlow.a(tensorflow_wrap.o) > (maybe you meant: _Ada_TF_AbortWhile) > etc. > Hmm, by 'etc' do you mean there are many more undefined symbols ? If so, could you pastebin the entire output of the gprbuild command > I have modified the hello_tf.gpr linker section to > package Linker is > for Default_Switches ("ada") use ("-Wl,-rpath,/usr/local/lib", "-L/Users/rogermcmurtrie/miniconda3/envs/tf/lib/python3.9/site-packages/tensorflow", "-ltensorflow_framework", > "-L/Ada_Source/cBound/tier-1/tensorflow/library/lib", "-lTensorFlow"); > end Linker; Maybe try adding "-ltensorflow" to the Linker 'Default_Switches', just after the "-ltensorflow_framework" switch.