After many years of use of the C++ module (CND) in NetBeans, the CPPLITE
modules also came.
I made a simple cppite project (pomocni-cpplite) and here is what happens in
NetBeans.
1.Debugger does not work because gdb reports in log file:
~"\nProgram"
~" received signal SIGABRT, Aborted.\n"
~"0x00007ffff752bef5 in raise () from /usr/lib/libc.so.6\n"
*stopped,reason="signal-received",signal-name="SIGABRT",signal-meaning="Aborted",frame={addr="0x00007ffff752bef5",func="raise",args=[],from="/usr/lib/libc.so.6",arch="i386:x86-64"},thread-id="1",stopped-threads=["1"],core="5"
6^exit
=thread-exited,id="1",group-id="i1"
=thread-group-exited,id="i1"
2.Run does not give args to program, which are behind the executable name.
Build->Configuration Name:debug
Build->Build:make -f Makefile all
Build->Clean:make clean
Build->Run:/asoft-src/ispp-64/win32/pomocni-cpplite/pomocni-cpplite
"-xDRIVER=PostgreSQL;DATABASE=ispp-pprostor-beograd;SERVER=localhost;UID=vlada;PWD=vladakk;MaxVarcharSize=65536;MaxLongVarcharSize=65536;ByteaAsLongVarBinary=1"
ll /asoft-src/ispp-64/win32/pomocni-cpplite
-------------------------------------------
total 5420
drwxr-xr-x 3 root root 4096 апр 25 08:39 .
drwxr-xr-x 21 root root 4096 апр 24 17:40 ..
drwxr-xr-x 3 root root 4096 апр 24 21:13 CVS
-rw-r--r-- 1 root root 839 апр 25 09:12 ispp-out.log
-rw-r--r-- 1 root root 1327 апр 25 08:38 Makefile
-rwxr-xr-x 1 root root 618792 апр 25 08:39 pomocni-cpplite
-rw-r--r-- 1 root root 2318 апр 25 08:39 pomocni-cpplite.d
-rw-r--r-- 1 root root 908096 апр 25 08:39 pomocni-cpplite.o
lrwxrwxrwx 1 root root 56 апр 25 08:31 testIsppEntiteti.cpp ->
/asoft-src/ispp-64/win32/cc/pomocni/testIsppEntiteti.cpp
-rw-r--r-- 1 root root 1361414 апр 25 08:39 testIsppEntiteti.ii
-rw-r--r-- 1 root root 2626240 апр 25 08:39 testIsppEntiteti.s
cat /asoft-src/ispp-64/win32/pomocni-cpplite/Makefile
-----------------------------------------------------
GPP = /usr/bin/g++
VPATH=.
OBJS=pomocni-cpplite.o
CXXFLAGS=-c -MMD -g -funsigned-char -Wall -DDYN_ALLOC -DNO_ASM -DCOMPILE_DLL
-DFUNKCIJA= \
-DCOMPILE_LINUX64 -DHAVE_STDARG_H -DODBCXX_HAVE_SQLEXT_H
-DODBCXX_HAVE_SQL_H -DODBCXX_SIZEOF_LONG_LONG=8 \
-DPDC_FORCE_UTF8 -DPDC_RGB -DXCURSES -Dlinux \
-I/asoft-src/ispp-64/win32/include \
-I/asoft-src/ispp-64/win32/PDCurses-3.9/xcurses-without-symlinks-64 \
-I/asoft-src/ispp-64/libodbc++-0.2.3/libodbc-without-symlinks-64 \
-I/asoft-src/ispp-64/libodbc++-0.2.3/include \
-save-temps # -Wa,-ahlsd
LDFLAGS=\
--verbose -g --no-pie -lstdc++ -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11
-lcups -lodbc -fPIC -Xlinker -Map -Xlinker /tmp/pomocni-cpplite.map
LDLIBS=\
/asoft-src/ispp-64/win32/vklib-without-symlinks-64/dist/Debug/GNU-Linux/libvklib-without-symlinks-64.so
\
/asoft-src/ispp-64/win32/PDCurses-3.9/xcurses-without-symlinks-64/dist/Debug/GNU-Linux/libxcurses-without-symlinks-64.so
\
/asoft-src/ispp-64/libodbc++-0.2.3/libodbc-without-symlinks-64/dist/Debug/GNU-Linux/liblibodbc-without-symlinks-64.so
all: pomocni-cpplite
$(OBJS): testIsppEntiteti.cpp
$(GPP) $(CXXFLAGS) -o $@ $<
pomocni-cpplite: $(OBJS)
$(GPP) $(LDFLAGS) -o $@ $< $(LDLIBS)
clean:
rm -f *.o *.d
DEPS := $(wildcard *.d)
ifneq ($(DEPS),)
include $(DEPS)
endif
inxi --machine --graphics --cpu --system --audio
------------------------------------------------
System: Host: vlada-kuci Kernel: 5.11.14-1-MANJARO x86_64 bits: 64 Desktop:
KDE Plasma 5.21.4 Distro: Manjaro Linux
Machine: Type: Desktop Mobo: ASUSTeK model: M5A78L-M PLUS/USB3 v: Rev X.0x
serial: 160882541101074 BIOS: American Megatrends
v: 0404 date: 06/27/2016
CPU: Info: 8-Core model: AMD FX-8300 bits: 64 type: MCP cache: L2: 2 MiB
Speed: 1402 MHz min/max: 1400/3300 MHz Core speeds (MHz): 1: 1402 2:
1440 3: 1783 4: 1452 5: 1406 6: 1396 7: 1405
8: 1405
Graphics: Device-1: NVIDIA GK208B [GeForce GT 710] driver: nvidia v: 460.67
Display: x11 server: X.Org 1.20.11 driver: loaded: nvidia
resolution: 1920x1080~60Hz
OpenGL: renderer: GeForce GT 710/PCIe/SSE2 v: 4.6.0 NVIDIA 460.67
Audio: Device-1: Advanced Micro Devices [AMD/ATI] SBx00 Azalia driver:
snd_hda_intel
Device-2: NVIDIA GK208 HDMI/DP Audio driver: snd_hda_intel
Sound Server-1: ALSA v: k5.11.14-1-MANJARO running: yes
Sound Server-2: PulseAudio v: 14.2 running: yes
g++ --version
-------------
g++ (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
make --version
--------------
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Vladimir Koković, DP senior(70),
Serbia, Belgrade, 25.April 2021
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists