#making mist_1.3.0

20 messages · Page 1 of 1 (latest)

unkempt dirge
#

i made a make file:

CC = g++
CFLAGS = -std=c++11 -Wall
TARGET = mistWOW

SRCS = boot_into_gui.cpp calculator.cpp chat_to_mist.cpp compile.cpp \
       download_extensions.cpp games.cpp git_clone.cpp jokes.cpp \
       logout.cpp make_files.cpp mist_1.3.0.cpp mist_help.cpp \
       mist_installation.cpp mist_music_player.cpp mist_text.cpp \
       terminal_only.cpp

OBJS = $(filter-out mist_1.3.0.o, $(SRCS:.cpp=.o))

all: $(TARGET)

$(TARGET): mist_1.3.0.o $(OBJS)
    $(CC) $(CFLAGS) -o $@ $^

%.o: %.cpp
    $(CC) $(CFLAGS) -c $< -o $@

clean:
    rm -f $(OBJS) $(TARGET)

got error for chat_to_mist.cpp so changed an include location.

#include "/home/noob/Downloads/projects/MIST/mists_gimmicks/alphahex.cpp"

retried making, and there's following errors:

#
/usr/bin/ld: boot_into_gui.o: in function `main':
boot_into_gui.cpp:(.text+0x0): multiple definition of `main'; mist_1.3.0.o:mist_1.3.0.cpp:(.text+0x573): first defined here
/usr/bin/ld: calculator.o: in function `main':
calculator.cpp:(.text+0x0): multiple definition of `main'; mist_1.3.0.o:mist_1.3.0.cpp:(.text+0x573): first defined here
/usr/bin/ld: chat_to_mist.o: in function `main':
chat_to_mist.cpp:(.text+0x760): multiple definition of `main'; mist_1.3.0.o:mist_1.3.0.cpp:(.text+0x573): first defined here
/usr/bin/ld: compile.o: in function `main':
compile.cpp:(.text+0x0): multiple definition of `main'; mist_1.3.0.o:mist_1.3.0.cpp:(.text+0x573): first defined here
/usr/bin/ld: download_extensions.o: in function `main':
download_extensions.cpp:(.text+0x0): multiple definition of `main'; mist_1.3.0.o:mist_1.3.0.cpp:(.text+0x573): first defined here
/usr/bin/ld: git_clone.o: in function `main':
git_clone.cpp:(.text+0x0): multiple definition of `main'; mist_1.3.0.o:mist_1.3.0.cpp:(.text+0x573): first defined here
/usr/bin/ld: jokes.o: in function `main':
jokes.cpp:(.text+0x0): multiple definition of `main'; mist_1.3.0.o:mist_1.3.0.cpp:(.text+0x573): first defined here
/usr/bin/ld: logout.o: in function `main':
logout.cpp:(.text+0x0): multiple definition of `main'; mist_1.3.0.o:mist_1.3.0.cpp:(.text+0x573): first defined here
/usr/bin/ld: make_files.o: in function `main':
make_files.cpp:(.text+0x0): multiple definition of `main'; mist_1.3.0.o:mist_1.3.0.cpp:(.text+0x573): first defined here
/usr/bin/ld: mist_help.o: in function `main':
mist_help.cpp:(.text+0x0): multiple definition of `main'; mist_1.3.0.o:mist_1.3.0.cpp:(.text+0x573): first defined here
/usr/bin/ld: mist_installation.o: in function `installation()':
mist_installation.cpp:(.text+0x0): multiple definition of `installation()'; mist_1.3.0.o:mist_1.3.0.cpp:(.text+0x0): first defined here
#
/usr/bin/ld: mist_music_player.o: in function `music()':
mist_music_player.cpp:(.text+0x0): multiple definition of `music()'; chat_to_mist.o:chat_to_mist.cpp:(.text+0x0): first defined here
/usr/bin/ld: mist_music_player.o: in function `Mists_Playlist()':
mist_music_player.cpp:(.text+0x10): multiple definition of `Mists_Playlist()'; chat_to_mist.o:chat_to_mist.cpp:(.text+0x10): first defined here
/usr/bin/ld: mist_text.o: in function `main':
mist_text.cpp:(.text+0x0): multiple definition of `main'; mist_1.3.0.o:mist_1.3.0.cpp:(.text+0x573): first defined here
/usr/bin/ld: terminal_only.o: in function `main':
terminal_only.cpp:(.text+0x0): multiple definition of `main'; mist_1.3.0.o:mist_1.3.0.cpp:(.text+0x573): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:16: mistWOW] Error 1
#

maybe somen is wrong w the make file

woeful cedar
#

lmao c++ really does fall apart when not on a native system

polar epoch
#

can you tell me why you're filtering out mist_1.3.0.cpp?

polar epoch
#

also, kinda weird to be using absolute paths in include directives

#

furthermore, including .cpp is most likely causing the errors related to multiple definition

unkempt dirge
unkempt dirge
polar epoch
#

that shouldn't matter

woeful cedar
#

the reason that file is mostly
separate is actually for editing purposes, i figured out that c++ has a real issue when it comes to me wanting to edit files so instead i separate everything

#

there's probably a better solution but with 1.5.0 i gotta rewrite alot of shit including the chatting file

polar epoch
#

you're not OP?

#

I don't see how that matters in terms of makefile but ok

woeful cedar
#

I don't wanna put it all onto one page

polar epoch
#

that has nothing with what I was even asking about

#

you're not even the person who posted the question