Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Managed Make Solutions, GCC and Linking problems

Hey All,

I've got a problem with a managed make project under:

  CDT 2.1.0 (Eclipse 3.0.1)
  Solaris 2.8
  gcc version 3.4.2;
  /usr/ccs/bin/as: Sun WorkShop 6 2003/12/18 Compiler Common 6.0 Patch
114802-02

I've put together a quick HelloWorld with just two source files and one
header. The main calls a getMessage function which returns "Hello World"
which main then prints out to console.

This doesn't build for me :-(

Build output and code below. It appears (at very much face value) that
the assembler isn't being given any filenames to, well, assemble.

Can anyone help me out with some guesses at the settings I've missed?
I'm running with defaults in all the C/C++ Build > Tool Settings :-(

Thanks

Rob

____________________________________________________________________
**** Full rebuild of configuration Debug for project HelloWorld ****

make -k clean all 
rm -rf source/getMessage.o source/main.o   source/getMessage.d
source/main.d   HelloWorld
Building file: ../source/getMessage.c
gcc -O0 -g3 -Wall -c -fmessage-length=0 -osource/getMessage.o
../source/getMessage.c
/usr/ccs/bin/as: error: no input filename given
usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-f[O][if]#] [-q] [-s]
	  [-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
	  [-P [[-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
	  [-m [-Ym,path]] [-n] [-ul] [-xF] [-xarch=v7] [-xarch=v8]
[-xarch=v8a] [-xarch=v8plus] [-xarch=v8plusa] [-xarch=v8plusb]
[-xarch=v9] [-xarch=v9a] [-xarch=v9b]  [-xcode={pic13,pic32}] file.s...
make: *** [source/getMessage.o] Error 1
Building file: ../source/main.c
gcc -O0 -g3 -Wall -c -fmessage-length=0 -osource/main.o ../source/main.c
/usr/ccs/bin/as: error: no input filename given
usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-f[O][if]#] [-q] [-s]
	  [-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
	  [-P [[-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
	  [-m [-Ym,path]] [-n] [-ul] [-xF] [-xarch=v7] [-xarch=v8]
[-xarch=v8a] [-xarch=v8plus] [-xarch=v8plusa] [-xarch=v8plusb]
[-xarch=v9] [-xarch=v9a] [-xarch=v9b]  [-xcode={pic13,pic32}] file.s...
make: *** [source/main.o] Error 1
make: Target `all' not remade because of errors.
Build complete for project HelloWorl



main.c__________________________________________________
#include <stdio.h>
#include <stdlib.h>

#include "getMessage.h"

int main(int argc, char *argv[]) {
	printf((char*)getMessage());
	exit(0);
}

getMessage.c____________________________________________
char* getMessage() {
	return "Hello World";
}

getMessage.h____________________________________________
char* getMessage();





Back to the top