Author Topic: First Compiling  (Read 19636 times)

Pilu

  • Guest
First Compiling
« on: January 13, 2005, 06:48:20 pm »
I'm using Borland C++ (free command line compiler tool) and it says either
rm -f dummy.exe objs/main.o was not ... bla bla bla (like if it tried to execute rm through windows console)
OR
"Fatal: all-before does not exist - don't know how to make it"

what the hell is happening?

I love this IDE (even though i ve never used it yet), because it is quite user-friendly, but it is helly hard to configure.
First, i had problems because i had to specify objs (instead of .objs) in project config, otherwise it would say that make was messed up. Now i'm having this problem... I'm getting quite nervous.... but I'm sure i ll sort out this f***** problem.
Help is realllllly welcome. Thanks very much in advance.
---
Pilu

still me

  • Guest
First Compiling
« Reply #1 on: January 13, 2005, 08:18:26 pm »
i ve played around in the ide a little more , and nothing seems to work unless i modify the makefile, but i have no clue of what i'm doing, i'm really playing around, praying that next compiling will work, even though it never does so. if any of you could gimme a working borland c++ makefile , it would be of great help . thx again

Anonymous

  • Guest
First Compiling
« Reply #2 on: January 14, 2005, 03:09:29 pm »
Okey... lets start from the vary basic... I'm going to send you my makefile as-is after project creation (with borland c++ as compiler) , without any editing... and the errors. hopefully you'll be able to help me, because i'm getting desesperate.
Project   : Win32 Application
Compiler  : Borland C++ Compiler 5.5
Directory : C:\scripts\SDL\dumbthree\
MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
Error E:\DOCUME~1\PILU~1.PIL\IMPOST~1\Temp\cbm1BC.tmp 82: Command syntax error
Error E:\DOCUME~1\PILU~1.PIL\IMPOST~1\Temp\cbm1BC.tmp 83: Command syntax error
Error E:\DOCUME~1\PILU~1.PIL\IMPOST~1\Temp\cbm1BC.tmp 84: Command syntax error
*** 3 errors during make ***

###############################################################################
# Makefile automatically generated by Code::Blocks IDE                        #
###############################################################################

# Project:          Win32 Application
# Project filename: C:\scripts\SDL\dumbthree\Win32GUI.cbp
# Date:             01/14/05 14:59:15
# Compiler used:    Borland C++ Compiler 5.5

### Variables used in this Makefile
RM=rm -f
ZIP=zip.exe -a
ZIP_EXT=zip
CC=bcc32.exe
CPP=bcc32.exe
LD=ilink32.exe
RESCOMP=brcc32.exe

### Compiler/linker options
GLOBAL_CFLAGS= /Wp64 /W4 /W3 /W2 /W1 /Wall
PROJECT_CFLAGS=
GLOBAL_LDFLAGS=
PROJECT_LDFLAGS= -lstdc++ -lgcc -lgdi32 -lcomdlg32 -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid
GLOBAL_INCS= /IC:/BorlandCompiler/Include
PROJECT_INCS=
GLOBAL_LIBS= /LC:/BorlandCompiler/Lib
PROJECT_LIBS=

### Targets compiler flags
default_CFLAGS= $(GLOBAL_CFLAGS) $(PROJECT_CFLAGS)

### Targets linker flags
default_LDFLAGS= $(GLOBAL_LDFLAGS) $(PROJECT_LDFLAGS)

### Targets include directories
default_INCS= $(GLOBAL_INCS) $(PROJECT_INCS)

### Targets library directories
default_LDADD= $(GLOBAL_LIBS) $(PROJECT_LIBS)

###############################################################################
#         You shouldn't need to modify anything beyond this point             #
###############################################################################

### Resources used in this Makefile
default_RESOURCE=

### Objects used in this Makefile
default_OBJS=.objs/main.o
default_LINKOBJS=$(default_OBJS) $(default_RESOURCE)

### The targets of this project
default_OUTDIR=.
default_BIN=win32gui.exe

.PHONY: all all-before all-custom all-after clean clean-custom distclean distclean-custom default-before default-after

all: all-before default all-after


dist:
   @$(ZIP) Win32GUI.cbp.$(ZIP_EXT) Win32GUI.cbp Makefile main.cpp

clean_default:
   $(RM) $(default_BIN) $(default_OBJS) $(default_RESOURCE)

distclean_default:
   $(RM) $(default_BIN) $(default_OBJS) $(default_DEPS) $(default_RESOURCE)

clean: clean_default

distclean: distclean_default

default: default-before $(default_BIN) default-after

$(default_BIN): $(default_LINKOBJS)
   -@if not exist "$(default_OUTDIR)" mkdir "$(default_OUTDIR)"
   $(LD) $(default_LIBS) /o $(default_BIN) $(default_LDADD) $(default_LINKOBJS) $(default_LDFLAGS)


.objs/main.o: main.cpp
   -@if not exist ".\.objs\." mkdir ".\.objs"
   $(CPP) $(default_CFLAGS) $(default_INCS) /o.objs/main.o /c main.cpp


by the way.. .i've tried all kind of params... either with hypens or slashes. this is the win32 makefile, even though console programs dont work either.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
First Compiling
« Reply #3 on: January 14, 2005, 10:42:07 pm »
Quote
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland

Code::Blocks cann not work with Borland's "make". You have to install GNU "make" and put it in your PATH.
Generated makefiles are for GNU "make", only...

Besides, as I 've never used BCC, I couldn't test its behaviour. Another guy has helped me now with how BCC should be configured and the next update will be able to compile succesfuly using the BCC compiler.

Yiannis.
Be patient!
This bug will be fixed soon...

Anonymous

  • Guest
First Compiling
« Reply #4 on: January 15, 2005, 04:05:22 am »
http://www.fifsoft.com/relo/index.php

Built in Borland Support.. no tinkering required :) Problem solved!

Anonymous

  • Guest
First Compiling
« Reply #5 on: January 15, 2005, 11:15:46 am »
thx very much guys .... i'll try using gnu make....
mandrav... until the next version comes out you should put this problem in a FAQ, most likely other ppl will have this problem... unless i'm dumb and i m the only one who hasnt seen the solution around :$
see you guys :)