Click here to Skip to main content
14,242,790 members

C / C++ / MFC

 
QuestionOverflow check on integer multiplication in C ? Pin
Hans9999-Jul-19 2:01
memberHans9999-Jul-19 2:01 
AnswerRe: Overflow check on integer multiplication in C ? Pin
Daniel Pfeffer9-Jul-19 3:10
professionalDaniel Pfeffer9-Jul-19 3:10 
AnswerRe: Overflow check on integer multiplication in C ? Pin
Joe Woodbury9-Jul-19 7:41
professionalJoe Woodbury9-Jul-19 7:41 
AnswerRe: Overflow check on integer multiplication in C ? Pin
leon de boer10-Jul-19 3:35
memberleon de boer10-Jul-19 3:35 
GeneralRe: Overflow check on integer multiplication in C ? Pin
CPallini10-Jul-19 4:57
mveCPallini10-Jul-19 4:57 
SuggestionI have created a Wrapper but while calling a function from C# its moving to my Lib file and giving below error andy solution? Pin
Member 143147593-Jul-19 22:14
memberMember 143147593-Jul-19 22:14 
GeneralRe: I have created a Wrapper but while calling a function from C# its moving to my Lib file and giving below error andy solution? Pin
leon de boer4-Jul-19 2:39
memberleon de boer4-Jul-19 2:39 
Question"crosslinking " - different architecture libraries - is is possible? Pin
Vaclav_1-Jul-19 10:54
memberVaclav_1-Jul-19 10:54 
Update
I linked only part of the /lib folder , my mistake.

Still like to know if my original question - linking to network resource is feasible.
This is basically result of my inability to ".configure" for non - native architecture.
The "configure" kept asking for dependency after dependency.
So I ended up running .configure on required architecture.






After a detour I am back to tying to implement / crosscompile C++ code.
I can option a prefix for desired architecture , but still having an issue linking to specific desired architecture libraries.
I was unable to use ".configure " to create correct foreign architecture library on "local" architecture.

I did a hack by copying an entire "foreign" folder to local device and was partially successful linking to it.

Still missing some library and could do same hack.

Is there a more "elegant" way to accomplish that?


Here is what is still failing to link correctly.
Sorry for the mess.



gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) 
COMPILER_PATH=/usr/lib/gcc-cross/arm-linux-gnueabihf/5/:/usr/lib/gcc-cross/arm-linux-gnueabihf/5/:/usr/lib/gcc-cross/arm-linux-gnueabihf/:/usr/lib/gcc-cross/arm-linux-gnueabihf/5/:/usr/lib/gcc-cross/arm-linux-gnueabihf/:/usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/bin/
LIBRARY_PATH=/usr/lib/gcc-cross/arm-linux-gnueabihf/5/:/usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/lib/../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/lib/:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-L/media/z/KINGSTON/BULEZ_LIB_RPI' '-L/usr/arm-linux-gnueabihf/lib' '-L/media/z/DEV/BLUEZ/BLUEZ_LIB' '-v' '-o' 'VNAR_1971_JULY' '-shared-libgcc' '-march=armv7-a' '-mfloat-abi=hard' '-mfpu=vfpv3-d16' '-mthumb' '-mtls-dialect=gnu'
 /usr/lib/gcc-cross/arm-linux-gnueabihf/5/collect2 -plugin /usr/lib/gcc-cross/arm-linux-gnueabihf/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc-cross/arm-linux-gnueabihf/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccUbRWT4.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -dynamic-linker /lib/ld-linux-armhf.so.3 -X --hash-style=gnu --as-needed -m armelf_linux_eabi -z relro -o VNAR_1971_JULY /usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/lib/../lib/crt1.o /usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/lib/../lib/crti.o /usr/lib/gcc-cross/arm-linux-gnueabihf/5/crtbegin.o -L/media/z/KINGSTON/BULEZ_LIB_RPI -L/usr/arm-linux-gnueabihf/lib -L/media/z/DEV/BLUEZ/BLUEZ_LIB -L/usr/lib/gcc-cross/arm-linux-gnueabihf/5 -L/usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/lib/../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/lib ./src/MODULES/SOURCE_CODE/src/ESA_BASE_BAD.o ./src/MODULES/M_WIRE/CLASSWIRE.o ./src/MODULES/M_VNAR/CAD8302Detector.o ./src/MODULES/M_VNAR/C_DirectionalCoupler.o ./src/MODULES/M_VNA/CVNA.o ./src/MODULES/M_UTILITY/CUtility.o ./src/MODULES/M_TFT/CTEMPLATECLASS.o ./src/MODULES/M_TEMPLATE/CParameter.o ./src/MODULES/M_TEMPLATE/CParameter_test.o ./src/MODULES/M_TCP_IP/CTCPIPSERVER.o ./src/MODULES/M_TCP_IP/CTCPITCLIENT.o ./src/MODULES/M_SPI_TEST/CLASSSPITEST.o ./src/MODULES/M_SPI_LCM1602/C_TEMP_SPI.o ./src/MODULES/M_SPI_LCM1602/SAMPLE_CODE.o ./src/MODULES/M_SPI/CLASSFBDRIVER.o ./src/MODULES/M_SPI/CLASS_SPI.o ./src/MODULES/M_SPI/CLASS_SPI_BAD.o ./src/MODULES/M_SPI/C_FB.o ./src/MODULES/M_SPI/C_SPI.o ./src/MODULES/M_SPI/C_TFT.o ./src/MODULES/M_SPI/_touch.o ./src/MODULES/M_PCF8574/CLASSPCF8574.o ./src/MODULES/M_LCM1602_I2C/CLASSLCM1602.o ./src/MODULES/M_IOCTL/CIOCTL.o ./src/MODULES/M_IOCTL/CIOCTLGPIO.o ./src/MODULES/M_IOCTL/CIOCTLSPI.o ./src/MODULES/M_IOCTL/CLASSI2C.o ./src/MODULES/M_ILI9340_SPI_TFT/ili9340spi_rpi-master/demo.o ./src/MODULES/M_ILI9340_SPI_TFT/ili9340spi_rpi-master/fontx.o ./src/MODULES/M_ILI9340_SPI_TFT/ili9340spi_rpi-master/ili9340.o ./src/MODULES/M_ILI9340_SPI_TFT/ili9340spi_rpi-master/touch.o ./src/MODULES/M_ILI9340_SPI_TFT/ili9340spi_rpi-master/xpt.o ./src/MODULES/M_ILI9340_SPI_TFT/ili9340spi_rpi-master/xpt2046.o ./src/MODULES/M_ILI9340_SPI_TFT/CILI9340SPITFT.o ./src/MODULES/M_I2CIO/CLASSI2CIO.o ./src/MODULES/M_DDS_60/CDDS60.o ./src/MODULES/M_BLUETOOTH/CBT.o ./src/MODULES/M_BLUETOOTH/CBTTOOLS.o ./src/MODULES/M_BLUETOOTH/CDBUS.o ./src/MODULES/M_BLUETOOTH/CHCI.o ./src/MODULES/M_BCM2835_SPI_TFT/CBCM2835SPITFT.o ./src/MODULES/M_BCM2835_SPI_TFT/CBCMGPIO.o ./src/MODULES/M_BCM/CBCM.o ./src/MODULES/M_BASE_TEST/CBASE.o ./src/MODULES/M_BASE_TEST/CDEVICE.o ./src/MODULES/M_BASE_TEST/CINHER.o ./src/MODULES/M_ADS1115/CADS1115.o ./src/MODULES/M_ADA_ILI9341/ADAPORTILI9341.o ./src/MODULES/M_ADA/CADAILI9341.o ./src/MODULES/M_1602_HPP/M_1602_HPP.o ./src/MODULES/MODULE_SPI_DRIVER/CSPIDRIVER.o ./src/MODULES/MODULE_SPI/CSPI.o ./src/MODULES/MODULE_MAP_GPIO/CMAPGPIO.o ./src/MODULES/MODULE_INHERITED_GPIO_MAP/INHERITANCEBASE.o ./src/MODULES/MODULE_INHERITED_GPIO_MAP/INHERITANCEDERIVED.o ./src/MODULES/MODULE_INHERITED_GPIO_MAP/MODULEINHERITEDGPIOMAP.o ./src/MODULES/MODULE_I2C/CI2C.o ./src/MODULES/MODULE_GPIO/CGPIO.o ./src/MODULES/MODULE_BASE_GPIO_MAP/MODULEBASEGPIOMAP.o ./src/MODULES/MODULE_1602/C_1602.o ./src/MODULES/MODULE_1602/C_LCD2_CPP.o ./src/MODULES/MODULE_1602/C_SPI.o ./src/MODULES/MODULE_1602/C_SPI_LCD.o ./src/MODULES/MODULE_1602/C_SSP.o ./src/MODULES/MODULE_1602/C_gpio.o ./src/VNA_1022_BASE.o -lbluetooth -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc-cross/arm-linux-gnueabihf/5/crtend.o /usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/lib/../lib/crtn.o
/usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/bin/ld: cannot find /lib/arm-linux-gnueabihf/libc.so.6
/usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/bin/ld: cannot find /usr/lib/arm-linux-gnueabihf/libc_nonshared.a
/usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/bin/ld: cannot find /lib/arm-linux-gnueabihf/ld-linux-armhf.so.3
collect2: error: ld returned 1 exit status


Ideally to be able to option crosscomplier to use "foreign" links.

Would something like adding another prefix to the "_L" option work ?

modified 5-Jul-19 12:37pm.

AnswerRe: "crosslinking " - different architecture libraries - is is possible? Pin
Richard MacCutchan1-Jul-19 20:56
protectorRichard MacCutchan1-Jul-19 20:56 
AnswerRe: "crosslinking " - different architecture libraries - is is possible? Pin
leon de boer2-Jul-19 5:03
memberleon de boer2-Jul-19 5:03 
QuestionCreated .Dll from and .ocx using C++/CLI but interop is not loading in C# Pin
Member 143147591-Jul-19 3:16
memberMember 143147591-Jul-19 3:16 
QuestionReturn From DoModal with RadioButton Pin
ForNow30-Jun-19 4:50
memberForNow30-Jun-19 4:50 
AnswerRe: Return From DoModal with RadioButton Pin
Victor Nijegorodov30-Jun-19 6:43
memberVictor Nijegorodov30-Jun-19 6:43 
AnswerRe: Return From DoModal with RadioButton Pin
Randor 30-Jun-19 7:13
professional Randor 30-Jun-19 7:13 
GeneralRe: Return From DoModal with RadioButton Pin
ForNow30-Jun-19 7:53
memberForNow30-Jun-19 7:53 
GeneralRe: Return From DoModal with RadioButton Pin
Randor 30-Jun-19 8:08
professional Randor 30-Jun-19 8:08 
GeneralRe: Return From DoModal with RadioButton Pin
ForNow30-Jun-19 9:43
memberForNow30-Jun-19 9:43 
PraiseRe: Return From DoModal with RadioButton Pin
Randor 30-Jun-19 14:22
professional Randor 30-Jun-19 14:22 
GeneralRe: Return From DoModal with RadioButton Pin
ForNow30-Jun-19 16:24
memberForNow30-Jun-19 16:24 
AnswerRe: Return From DoModal with RadioButton Pin
Randor 30-Jun-19 17:34
professional Randor 30-Jun-19 17:34 
GeneralRe: Return From DoModal with RadioButton Pin
Victor Nijegorodov30-Jun-19 21:37
memberVictor Nijegorodov30-Jun-19 21:37 
GeneralRe: Return From DoModal with RadioButton Pin
Randor 30-Jun-19 22:38
professional Randor 30-Jun-19 22:38 
QuestionHRESULT variable returning negative value Pin
Member 1449956328-Jun-19 5:58
memberMember 1449956328-Jun-19 5:58 
AnswerRe: HRESULT variable returning negative value Pin
jeron128-Jun-19 6:15
memberjeron128-Jun-19 6:15 
GeneralRe: HRESULT variable returning negative value Pin
Member 1449956328-Jun-19 6:57
memberMember 1449956328-Jun-19 6:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.