Well, I don't see how that would ever work.  The /Fo option is to rename the object file or directory.  Since you only specify a directory, the compiler will use the base name of the file being compiled.

You would need this:

/Fo.\$(OUT_DIR)\sqlite3.obj


Thanks, yes that did it. But I feel very sure when I say that the .obj file wasn't specified before. Well, I guess c'est la vie...

BUT, now something else happens:

        link /nologo /SUBSYSTEM:Windows rexx.lib rexxapi.lib user32.lib advapi32.lib -def:src\platform\windows\ooSQLite.def /DLL build\release\sqlite3
.obj build\release\ooSQLite.obj build\release\APICommon.obj build\release\ooSqlSysLibrary.obj  build\release\nextchar.obj build\release\ieee754.obj bu
ild\release\percentile.obj build\release\rot13.obj  build\release\regexp.obj build\release\spellfix.obj build\release\wholenumber.obj  build\release\s
hell.obj build\release\codec.obj build\release\botan_all.obj -out:build\release\oosqlite.dll
   Creating library build\release\oosqlite.lib and object build\release\oosqlite.exp
sqlite3.obj : error LNK2019: unresolved external symbol _sqlite3_key_v2 referenced in function _sqlite3Pragma
sqlite3.obj : error LNK2019: unresolved external symbol _sqlite3_rekey_v2 referenced in function _sqlite3Pragma
build\release\oosqlite.dll : fatal error LNK1120: 2 unresolved externals

To cure some other unresolved external references I had to add the following to the OBJ_FILES concatenation:

$(OUT_DIR)\codec.obj $(OUT_DIR)\botan_all.obj

but that doesn't seem to be enough. I tried to include shell.obj as well but nothing changed. So any idea what's missing now?

Staffan