Как решить GDB "Предупреждение: неразрывная версия Dyld (17)"C++

Программы на C++. Форум разработчиков
Ответить Пред. темаСлед. тема
Anonymous
 Как решить GDB "Предупреждение: неразрывная версия Dyld (17)"

Сообщение Anonymous »

Все. < /p>
Мне нужно установить GDB, чтобы иметь возможность отладить код Fortran 90. Тем не менее, я сталкиваюсь с множеством ошибок, пытаясь установить это на Mac. Эти команды также показывают, как я построил GDB: < /p>
brew install --build-from-source --head domq/gdb/gdb
< /code>
Моя версия GDB показана ниже: < /p>
GNU gdb (GDB) 15.0.50.20231019-git
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
< /code>
Я создал немного кода C ++, чтобы просто проверить, как работает GDB. Это исходный код: < /p>
#include

int main(){
std::cout
Вот мой компилятор и настройки Makefile: < /p>
g++-13 (Homebrew GCC 13.2.0) 13.2.0
Copyright (C) 2023 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.
< /code>
########################################################################
####################### Makefile Template ##############################
########################################################################
# Compiler settings - Can be customized.
CC = /usr/local/bin/g++-13
CXXFLAGS = -std=c++11 -arch x86_64 -ggdb -O0 -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic
LDFLAGS =

# Makefile settings - Can be customized.
APPNAME = myapp
EXT = .cpp
SRCDIR = src/include
OBJDIR = obj

############## Do not change anything from here downwards! #############
SRC = $(wildcard $(SRCDIR)/*$(EXT))
OBJ = $(SRC:$(SRCDIR)/%$(EXT)=$(OBJDIR)/%.o)
DEP = $(OBJ:$(OBJDIR)/%.o=%.d)
# UNIX-based OS variables & settings
RM = rm
DELOBJ = $(OBJ)
# Windows OS variables & settings
DEL = del
EXE = .exe
WDELOBJ = $(SRC:$(SRCDIR)/%$(EXT)=$(OBJDIR)\\%.o)

########################################################################
####################### Targets beginning here #########################
########################################################################

all: $(APPNAME)

# Builds the app
$(APPNAME): $(OBJ)
$(CC) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)

# Creates the dependecy rules
%.d: $(SRCDIR)/%$(EXT)
@$(CPP) $(CFLAGS) $< -MM -MT $(@:%.d=$(OBJDIR)/%.o) >$@

# Includes all .h files
-include $(DEP)

# Building rule for .o files and its .c/.cpp in combination with all .h
$(OBJDIR)/%.o: $(SRCDIR)/%$(EXT)
$(CC) $(CXXFLAGS) -o $@ -c $<

################### Cleaning rules for Unix-based OS ###################
# Cleans complete project
.PHONY: clean
clean:
$(RM) $(DELOBJ) $(DEP) $(APPNAME)

# Cleans only all files with the extension .d
.PHONY: cleandep
cleandep:
$(RM) $(DEP)

#################### Cleaning rules for Windows OS #####################
# Cleans complete project
.PHONY: cleanw
cleanw:
$(DEL) $(WDELOBJ) $(DEP) $(APPNAME)$(EXE)

# Cleans only all files with the extension .d
.PHONY: cleandepw
cleandepw:
$(DEL) $(DEP)

< /code>
When I run gdb in command line, I write:
gdb ./myapp
GNU gdb (GDB) 15.0.50.20231019-git
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin22.6.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./myapp...
(gdb) run
Starting program: /Users/cdwalke8/Desktop/Dev/nrlmisiscpp/myapp
[New Thread 0x2503 of process 2819]
^C[Thread 0x2503 of process 2819 exited]
[New Thread 0x3f03 of process 2819]
warning: unhandled dyld version (17)
Hello World!
[Inferior 1 (process 2819) exited normally]
(gdb)
< /code>
Notice that I need to hit ctrl+c to cause it to exit before the normal functioning proceeds.
How do I solve the warning provided?

Подробнее здесь: https://stackoverflow.com/questions/773 ... version-17
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение
  • Как решить проблему GDB «Предупреждение: необработанная версия dyld (17)»
    Anonymous » » в форуме C++
    0 Ответы
    64 Просмотры
    Последнее сообщение Anonymous
  • Есть ли неразрывная космическая сущность без места?
    Anonymous » » в форуме Html
    0 Ответы
    2 Просмотры
    Последнее сообщение Anonymous
  • Распечатать аргументы, которые были переданы в GDB изнутри GDB?
    Anonymous » » в форуме Linux
    0 Ответы
    119 Просмотры
    Последнее сообщение Anonymous
  • Ошибка при соединении GDB с сервером GDB
    Anonymous » » в форуме Linux
    0 Ответы
    55 Просмотры
    Последнее сообщение Anonymous
  • Как мне настроить GDB/GDB с помощью Qemu и Linux?
    Anonymous » » в форуме Linux
    0 Ответы
    44 Просмотры
    Последнее сообщение Anonymous

Вернуться в «C++»